Re: How do I capture the filename of an image dropped in an NSImageView?
Re: How do I capture the filename of an image dropped in an NSImageView?
- Subject: Re: How do I capture the filename of an image dropped in an NSImageView?
- From: Nicko van Someren <email@hidden>
- Date: Wed, 17 Nov 2004 15:11:14 +0000
On 17 Nov 2004, at 14:48, Charles Crowley wrote:
In my application I store the filename of an image rather than the
image data itself. When a user drops an image on an NSImageView there
does not seem to be an obvious way to get the filename of the image.
Does anyone know how to do this?
It seems like there should be a delegate method something like:
- (BOOL) imageViewShouldAcceptDraggedFilenames: (NSArray *) filenames;
The NSImageView will be implementing the NSDraggingDestination
protocol. I suggest that you subclass NSImageView with a new
implementation of performDragOperation: to interrogate the sending
NSDraggingInfo object about the files and then call the superclass
implementation.
Nicko
_______________________________________________
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