Re: File path from image drag and drop
Re: File path from image drag and drop
- Subject: Re: File path from image drag and drop
- From: Brian Williams <email@hidden>
- Date: Thu, 30 May 2002 02:35:53 -0700 (PDT)
Thanks Matt and David for the help.
This is what I did to get the file name. (thought I would post this for the
archives) Maybe there is a more direct route?
in my NSImageView :
- (void)concludeDragOperation:(id <NSDraggingInfo>)sender
{
[self displayExif:[[[sender draggingPasteboard]
propertyListForType:@"NSFilenamesPboardType"] objectAtIndex:0] ];
[super concludeDragOperation:sender];
}
--- Matt Neuburg <email@hidden> wrote:
>
On Mon, 27 May 2002 04:25:09 -0700 (PDT), Brian Williams
>
<email@hidden> said:
>
>
>Just wondering if anyone knows how to get the filepath from an image dragged
>
>from the desktop to an NSImageView. I have been trying to find a path back
>
but
>
>no luck yet. That info does not seem to be in the NSDraggingInfo
>
>
NSFilenamesPboardType.
>
>
m.
>
--
>
>
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
>
pantes gar anthropoi tou eidenai oregontai phusei
>
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
=====
Brian Williams
homepage == <
http://chromaticgray.com>
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.