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.
Questions tagged [nsimageview]
248 questions
2
votes
1 answer
Swift: How to change NSImage image source?
I'm a newbee with XCode and Swift. Trying to simply set an image in my view in an OS X application. The image should be loaded from the web, but I think that doesn't matter.
I created a new Cocoa App, have a list view which works. In the XIB for the…

udondan
- 57,263
- 20
- 190
- 175
2
votes
1 answer
How to put overlay NSImageView and keep it at the top of a WebView?
How to put overlay view (NSImageView) and keep it at the top in front of a WebView ( which runs core animation or )?
Standard ordering in interface builder does not help.. imageview is shown in front of the webview but when i load the contents of…

frankish
- 6,738
- 9
- 49
- 100
2
votes
3 answers
Core Animation not working on Leopard, working on Snow Leopard
I animate NSImageViews using its animator proxy. While testing my application on Snow Leopard, everything works as expected. However, on Leopard, none of the animations are functioning. In addition, NSImageViews don't seem to take into effect the…

Nick Paulson
- 21
- 1
2
votes
1 answer
Customize NSMenuItem with image and progress indicator
I would like to add an image (Canadian flag) on the right side of the IP address (near the right edge of the menu) and the NSProgressIndicator to the left of the word 'Updating...'.
Can this be done in the view designer or does it need to be done in…

craig
- 25,664
- 27
- 119
- 205
2
votes
2 answers
Rotating NSView that holds an NSImageView
I am creating an NSView, which in its drawRect method creates and adds an NSImageView as a subview.
I would like to rotate this NSImageView (circleView), or [self]. So in another method, I am trying to do that:
-(void)startAnimation…

mootymoots
- 4,545
- 9
- 46
- 74
2
votes
1 answer
Resizing NSImageView through constraints
everybody!
I'm trying to resize imageview (instance of NSImageView) during resizing a window. I set constrain in IB:
leading and trailing constraints between image view and its
superview "Equal or greater 0";
height and width constraint for…

Nikolai Nagornyi
- 1,312
- 2
- 11
- 26
2
votes
1 answer
NSImageView subclass not showing image
I'v made a subclass of NSImageView because I want to customize some mouseClick events. But, I haven't even started and something went wrong. I'v made NSImageView subclass:
(File/New/File... / Cocoa(Objective-C Class) / Class = NSImageViewME,…

jovanjovanovic
- 4,158
- 3
- 22
- 32
2
votes
1 answer
NSView subview right click not working over nsimageview
I have to two subviews associated with a view. One is a transparent view that handles a right click, the other a nsview with an nsimageview subview. For some reason the right click works over any part of the superview except the part within the…

VBK
- 1,435
- 1
- 15
- 34
2
votes
1 answer
Accepting TextClipping with NSImageView Drop Box
If you drag and drop a selection of text onto a folder, you will get a file with an extension of textClipping. TextEdit's document window accepts a text selection. Many applications do accept textClipping. How do you receive a text selection on…

El Tomato
- 6,479
- 6
- 46
- 75
2
votes
1 answer
Scale Up NSImage and Save
I would like to scale up an image that's 64px to make it 512px (Even if it's blurry or pixelized)
I'm using this to get the image from my NSImageView and save it:
NSData *customimageData = [[customIcon image] TIFFRepresentation];
…

atomikpanda
- 1,845
- 5
- 33
- 47
2
votes
2 answers
NSView Subclass drawRect gets called in an infinite Loop
I created a Subclass a of NSView to create a custom UI including a NSTextView. Therefore I use the drawRect Method to draw my UI. I also created a Subclass of NSImageView to get a mousedown Event. Whenever I click into my Subclassed NSImageView the…
user99070
2
votes
1 answer
NSImageView doesn't set image property after an image dragged in
I have an NSImageView that I placed in my NIB that I drag an image into. The image appears and displays, but when my code calls [imageView image], I get a NULL object.

Linuxios
- 34,849
- 13
- 91
- 116
2
votes
3 answers
NSImageView is not deallocated using ARC
Im pretty new to Cocoa development, and I probably do not clearly understand how ARC works.
My problem is that when I'm using NSImageView it is not getting deallocated as I want so the program is leaking memory.
__block CMTime lastTime =…

Eugene Gordin
- 4,047
- 3
- 47
- 80
2
votes
0 answers
Loading Images in Interface Builder (Cocoa)
When I load my images in Interface Builder, and choose the scaling as: "None", it adds the image scaled down a lot! I'd say almost 70% !!
Using "Proportionally up or down", and settings the image view width EXACTLY the same as the image width. So,…

Mazyod
- 22,319
- 10
- 92
- 157
1
vote
2 answers
how do you put a simple banner/image in OS X app window?
In IB, I put an Image View object in app window, and dragged a tiff from the finder into that space, turned off editing, and positioned/sized the image as a header banner. Looked fine in IB, but when built and ran, ImageView object is there only as…

Mr Anderson
- 13
- 4