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
0 answers
Can NSView be made to use software rendering for CIImages?
From a previous question,
CIImage drawing EXC_BAD_ACCESS,
I learned to work around a CoreImage issue by telling a CIContext to do software rendering. I am now trying to figure out a crasher that happens when AppKit tries to draw an NSImageView that…

Kaelin Colclasure
- 3,925
- 1
- 26
- 36
0
votes
0 answers
“EXC_BAD_ACCESS” while trying to animate a image with an NSArray and NSTimer
I am back again with my pigs (means cochon in French)! :)
I would like to created a at simple animated image with an NSTimer and I can't find example of it not with the iphone SDK.
after 3 second, the debugger displays : Program received signal: …

Maatthieu Maat
- 75
- 1
- 6
0
votes
1 answer
NSImageView - Huge memory leak?
For some reason, the allocation of two NSImageViews creates a huge memory leak.
Although dealloc method gets called in both NSImageViews.
I'm using ARC.
With NSImageViews
As soon as the following getter method is called, a lot of memory is…

IluTov
- 6,807
- 6
- 41
- 103
0
votes
2 answers
Objective C - NSImageView, NSImage, NSBitmapImage rep object lifecycle?
I've built a video viewer that is a Safari plugin that displays video from networked devices. The viewer reads bitmap images, prepares them, and sets them on the NSImageView object as follows:
NSBitmapImage *bmImg = [[NSBitmapImage alloc]…

snapdev
- 133
- 9
0
votes
1 answer
NSImageView empty in WebKit plugin
I'm writing a webkit plugin that downloads an image and prints it.I have verified that the correct data is downloaded and the NSImage has the correct dimensions. Unfortunately, the NSImageView containing the image doesn't display anything, neither…

Rich Catalano
- 1,147
- 1
- 14
- 23
0
votes
1 answer
Adding NSViews to NSScrollview - Mac OSX
I'm trying to add multiple images of NSImageView to the NSScrollView. When I add it as a subview, the scrollview doesn't seem to scroll and when I add it as a document view I can see only one image. Any ideas or sample code on how to get this…

DesperateLearner
- 1,115
- 3
- 19
- 45
0
votes
1 answer
How to get the size of NSImageView which is the sender after dropping a picture on it
In my project I have an NSImageView and I drop a picture from the finder on it. In an IBAction I want to take care if the picture size is bigger than the dimensions of the NSImageView as shown below.
I hoped that sender.size or sender.size.x or…

Ronald Hofmann
- 1,390
- 2
- 15
- 26
0
votes
1 answer
Objective-C: Move frame while key is pressed
I'm trying to move an NSImageView while key is being pressed.
Right now I have a boolean value that gets assigned true when keyDown is called,
and false when keyUp is called.
How could I animate an NSImageView to be moving while key is down?
For…

Dennis
- 3,506
- 5
- 34
- 42
0
votes
1 answer
Is there a method to know when a tooltip will appear on a NSImageView?
I'd like to know if there's a method that get's called before a tooltip is displayed. I can't find it anywhere.

Pedro Vieira
- 3,330
- 3
- 41
- 76
0
votes
1 answer
NSImage at app start
I have an image view object. I can get it to load images when a buttun is pressed but I want to know if there is a way to get it to load at the start of the app.
The code im using is
NSURL *lURL = nil;
NSData *lData = nil;
NSImage *lImage =…

AlanF
- 1,591
- 3
- 14
- 20
0
votes
1 answer
Aligning NSImageView so that it fills in bottom side of NSWindow
I'm a total absolute NOOB in Mac Apps so be gentle ;). Read some documentations, and jumped right in. Still continue to read but I can't figure out how to align/resize the NSImageView to the NSWindow it is in (after user resize the window).
For…

GeneCode
- 7,545
- 8
- 50
- 85
0
votes
0 answers
Preview image from a tableview
I have a tableview that contains a directory's files. When I select a row from the table , I want to preview the contents of it ( for example the contents of an jpeg image or a pdf file), but I can't find a solution . Do you have any suggestion…

Wael
- 71
- 5
0
votes
2 answers
Use Image from desktop as NSImage
How can I set a NSImageView's Image to a file from the desktop, not from inside my app.
this is the code i've tried:
[applicationIcon setImage:myImage];

atomikpanda
- 1,845
- 5
- 33
- 47
0
votes
0 answers
drag and drop: NSView thinks source is an image that it isn't
I have two views.
1. One view has a grid of NSImageViews with images.
2. The other view has a grid of potential places to place the dragged image.
I think I have dragging working. If I click and drag an image from view 1, it works fine, but when I…

Jomnipotent17
- 451
- 7
- 23
0
votes
2 answers
How to bring an NSImageView to the front or back of another NSImageView?
I have a NSTableView that holds a name to all of my NSImageView's, and depending on the order that the NSImageViews were added, the last one would be in the front.
But in the case that I want the user to be able to bring a NSImageViews in front of…

ObjectiveC-InLearning
- 443
- 1
- 7
- 20