• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File path from image drag and drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: File path from image drag and drop (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Objective C <--> COM comparison
  • Next by Date: Changing from single document to document based application
  • Previous by thread: Re: File path from image drag and drop
  • Next by thread: About sockets...
  • Index(es):
    • Date
    • Thread