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
0
votes
1 answer
CorePlot chart not showing up in PDF made with -dataWithPDFInsideRect
I'm generating a PDF from a view using -dataWithPDFInsideRect:.
Within the view is a CPTXYGraph which displays wonderfully in a Window but doesn't show up in the PDF at all.
I also tried putting an NSImageView into my view, then generating an…

Kenny Wyland
- 20,844
- 26
- 117
- 229
0
votes
2 answers
Animation of NSImage gets lost after archiving it with NSKeyedArchiver
Following situation:
I have an instance of my NSObject sublcassed object. One of it's properties is a NSImage. After instanciating the object I convert it with NSKeyedArchiver to data, send it over the network, unarchive it with NSKeyedUnarchiver…

papr
- 4,717
- 5
- 30
- 38
0
votes
1 answer
subview of IKImageView appears below image instead of above
I have a IKImageView and a NSImageView as a subview. Subviews are supposed to get drawn above their master view. I tried an NSImageView with the same subview, and it worked fine, but I really need to be able to move the image around with the mouse,…

pvinis
- 4,059
- 5
- 39
- 59
0
votes
0 answers
NSImageView Performance
I have a very simple Mac Application; the best way to think of it is a master/detail view. Once an item is chosen on the left-hand side, information appears on the right pane, along with an image (can be various sizes/formats/resolutions due to the…

kalikkalik
- 187
- 8
0
votes
0 answers
Cannot Opening Image using NSOpenPanel
I need to open image using NSOpenPanel. I did it using the following code:
NSOpenPanel *open = [NSOpenPanel openPanel];
NSArray *fileTypes = [[NSArray alloc] initWithObjects:@"jpg", @"gif", @"png", nil];
NSURL *filePath = [[NSURL alloc]…

Nikita Zernov
- 5,465
- 6
- 39
- 70
0
votes
1 answer
What is the application Bundle and Resources folder
My question is about the application bundle in a project. I was reading about that and can understand some basic things (I'm not a native english speaker). I can understand that the resources folder is used to hold the files that will be used in the…

Giquo
- 151
- 2
- 14
0
votes
2 answers
Wrong postion when plotting an nsiamgeview over an nsscrollview?
I have an NSScrollview which has a large imageview inside it.I am trying to plot an imageview programatically over the imageview inside the nsscrollview.
Think of it like this.I have a worldmap(NSImageView) inside an NSScrollView.The user selects a…

zzzzz
- 1,209
- 2
- 18
- 45
0
votes
1 answer
Drawing shadow around NSImageView
I'm trying to draw shadow under an NSImageView. I'm accessing the CALayer of the view and setting its shadow properties there:
[self.originalImageView setWantsLayer:YES];
CALayer *imageLayer = self.originalImageView.layer;
[imageLayer…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
0
votes
1 answer
Unable to properly position NSImageView in NSView
I would like to display an NSImageView in my main View:
img=[[NSImageView alloc]init];
[img setImage:[[NSImage alloc]initWithContentsOfFile:filename]];
width=img.image.size.width/2;
height=img.image.size.height/2;
[img setFrame:NSMakeRect(0,0,width…

Laurent Crivello
- 3,809
- 6
- 45
- 89
0
votes
1 answer
Highlight NSImageView in NSView
I have a simple question. I have my NSView which is detecting drops (drag and drop). When user drops a link with image from browser, I detect that action, create NSImageView, initialize it on a place where user dropped it with some default frameSize…

jovanjovanovic
- 4,158
- 3
- 22
- 32
0
votes
0 answers
IKImageBrowserView, collapse group will lose selection
I asked a question before: How to use IKImagebrowserView's group dispaly?
And now I am got the group style view very well, like this
when I select some photos(not all of them) from group yazi,
and then click the small triangle to collapse it, and…

droughtrain
- 257
- 1
- 4
- 18
0
votes
1 answer
Subview of subclassed NSView re-positioned incorrectly after drawing a focus ring
I wanted to create a focus ring outside a subclassed NSView to identify selection. My reference comes from here: Link.
I followed the reference, overwrote the -drawRect method as:
@property (nonatomic) BOOL shouldDisplayFocus;
...
-…

Andrew Chang
- 1,289
- 1
- 18
- 38
0
votes
1 answer
Getting co-ordinates of bitmap on mouseDown in NSImageView
I am working on an app where I display unsupported (by XCode) file format). So I've subclassed NSBitmapImageRep to display it in a subclass of NSImaageView. I've set it up to be proportionally scallable (up or down). Now I need to add a possibility…

zioolek
- 421
- 5
- 15
0
votes
1 answer
NSImageView disappears without reason
I let my window autoresize to the visible screen. There is no problem in that code.
But the problem lies here I need to add ImageViews to the window and of course they should also be able to resize.
Code to create the ImageViews and to make window…

killerwakka
- 31
- 2
- 9
0
votes
1 answer
XCode display a project image in the credits.rtf file
I want to take an image from my project and add it to the "About MyApp" window.
This seemed as simple as adding the image to the credits.rtf file; once I dragged and dropped the image from the project to the credits.rtf file, it inserted the image…

Liftoff
- 24,717
- 13
- 66
- 119