• 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: How do I capture the filename of an image dropped in an NSImageView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How do I capture the filename of an image dropped in an NSImageView? (From: Charles Crowley <email@hidden>)

  • Prev by Date: Re: How to embed a popup menu in an NSTextField
  • Next by Date: Re: Swapping views and autoresizing ....
  • Previous by thread: Re: How do I capture the filename of an image dropped in an NSImageView?
  • Next by thread: Re: How do I capture the filename of an image dropped in an NSImageView?
  • Index(es):
    • Date
    • Thread