Questions tagged [nsimageview]

An NSImageView object displays a single image from an NSImage object in a frame. An editable image view object behaves as an image well and supports copying, pasting, dragging, and using the Delete key to clear its content.

248 questions
0
votes
1 answer

How to move an NSImageView in a 2D game?

I am porting one of my iPhone apps to the mac, but I cant figure out how to move my NSImageViews around the screen, like i would do with CGpointMake. Also, how do you find the image.center.x in cocoa? Any help would be great!
Conor Taylor
  • 2,998
  • 7
  • 37
  • 69
0
votes
1 answer

Animated gif File In NSImageView eats the Memory (Mac Development)

I just try to put Animated gif file with 6 frames acquired from url Request and create nsimage with the response ,,, then set the Image in NSImageView ... I use this // Where returnedImage is nsImage I created with response of the connection .. …
0
votes
0 answers

Why is rotating an NSImageView crashing my app?

I'm making a macOS app and I've got this code used to rotate an image: didSet { let degreesToRotate = oldValue - phoneXRotation phoneImageView.rotate(byDegrees: CGFloat(degreesToRotate)) degreesLabel.isHidden = false …
A Tyshka
  • 3,830
  • 7
  • 24
  • 46
0
votes
1 answer

Save image after rotate it. But picture has lower resolution after saving

I am trying rotate an image from IKImageView. But after rotating and saving it, I got a lower resolution picture. Below is code which I am using for rotating -(NSImage *)imageRotated:(float)degrees{ degrees = fmod(degrees, 360.); if(0 ==…
NextTrang
  • 5
  • 5
0
votes
1 answer

Iphone Memory Warning when camera shows

i have a TabBarController in which one tab has an ImageView. Besides, i have a button to display the ImagePicker: - (IBAction)choosePhoto { // Create image picker controller UIImagePickerController *imagePicker = [[UIImagePickerController…
Gerardo
  • 5,800
  • 11
  • 66
  • 94
0
votes
2 answers

Unable to load an image into NSImageView

I wrote the following and no image comes up. I displayed the pointer and it comes out as "0". In the next code block I checked the path and made shore the image was present there. Still nothing loads. NSImageView *vi = [[NSImageView alloc]…
jdl
  • 6,151
  • 19
  • 83
  • 132
0
votes
0 answers

NSRect geometric properties

I have some problems with NSRect : everything works great for my image until I open Full Screen. My image moves down accordingly NSRect positions and not of image's constraints. How can I fixe my constraints for this ImageView in NSRect? let…
J.A.
  • 61
  • 1
  • 5
0
votes
1 answer

Transition between NSImageViews in Objective-C

I am not very familiar with the Mac OS X APIs (coming from a long background of iPhone sdk) and I was wondering how I could add a transition when I switch nsimageviews. Does anyone have a short code snippet they can share about how to go about doing…
lab12
  • 6,400
  • 21
  • 68
  • 106
0
votes
2 answers

NSCollectionViewItem selection on NSImageView, border around image with CALayer

I have a NSCollectionViewItem with NSImageView in it. I want to have a shadow around the image. Once it is selected, I want the image to have shadow and a border. Currently, NSImageView gets a border around the image. How can I achieve shadow +…
0
votes
1 answer

New to Swift OSX: NSImageView Drawing multiple images with drawInRect - Can't update image

Please forgive my ignorance.. I'm new to Swift and I'm trying to sort this out.. I have a custom NSImageView (called 'AdFrame') that draws two images within NSRects. I want the bottom image to change when a user inputs a certain number. It draws…
fonix
  • 3
  • 3
0
votes
1 answer

NSTableCellView ImageView is null

I use simple NSTableViewDelegate , inside GetViewForItem method I find with with Identifier NSTableCellView view = (NSTableCellView)tableView.MakeView (tableColumn.Identifier, this); If Identifier is "Img" view should contain ImageView : switch…
Nininea
  • 2,671
  • 6
  • 31
  • 57
0
votes
0 answers

Cocoa NSImage imageNamed not working

I'm trying to load an image in a NSImageView. [self.background setImage:[NSImage imageNamed:@"button_selected.png"]]; where background is a NSImageView. The bizarre behavior is that I can't view this image unless I create another NSImageView by…
Talkanian
  • 19
  • 1
  • 5
0
votes
1 answer

Cocoa NSImage full view question

I am trying to automatically load an image full screen after the application is launched but it looks just a little bit funky. The outside edge of the image view can be seen - how do I eliminate that? My code looks like this: -…
startuprob
  • 1,917
  • 5
  • 30
  • 45
0
votes
0 answers

NSImageView - scaling image down loses sharpness

I am trying to render a few images in NSImageView's. These images are much larger than the size of the NSImageView (which I have set to scale proportionally up or down). But, the rendered image don't look very good. For example, in this sample…
georgemp
  • 716
  • 10
  • 21
0
votes
1 answer

adding image from NSImageView to Core Data ( Path url to Core Data and Image to Folder )

I am new in os x programming. I am using swift to developing my mac app. In my app I am able to pick and display an image from the folder in my mac to NSImageView , but my goal is to be able to save that picked image to data model. Later i need to…
Ben Rockey
  • 920
  • 6
  • 23