• 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: NSImage Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSImage Path (From: Or phix <email@hidden>)

  • Prev by Date: Re: NSFileManager Preference Pane
  • Next by Date: Re: NSWorkspace launchedApplications
  • Previous by thread: Re: NSImage Path
  • Next by thread: subview within NSView?
  • Index(es):
    • Date
    • Thread