Re: NSImage Path
Re: NSImage Path
- Subject: Re: NSImage Path
- From: Scott Anguish <email@hidden>
- Date: Thu, 30 Mar 2006 08:45:44 -0800
On Mar 29, 2006, at 8:29 PM, Or phix wrote:
Hi,
I am trying to setup a NSImageView that can has drag and drop
enable. I would like to find out how to get the pathname of the
dropped image. Is there a method to get the path of the image from
the NSImageView? Is there are method to get the path from the
NSImage that I can retrieve from the NSImageView?
NSImageView has no concept of a path or file. It simply loads the
image file and stores the NSImage object that is created.
The SoundFileWell class in the InterfaceBuilder bMoviePalette
example in /Developer/Examples might be a good starting point. You'd
only need to alter the setURL: method to set the image to the
contents of the file rather than the icon for the file. A one line
change.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden