Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.programmer.help > #30

Re: NSImageView / NSImageWell - get URL of dragged image?

From jim@magrathea.plus.com (Jim)
Newsgroups comp.sys.mac.programmer.help
Subject Re: NSImageView / NSImageWell - get URL of dragged image?
Date 2011-06-08 22:07 +0100
Organization The Culture
Message-ID <1k2kday.l7k84b1f9t2hhN%jim@magrathea.plus.com> (permalink)
References <slrniuv31b.1mpd.jim@wotan.magrathea.local> <wcyeo-9746B1.13125008062011@news.giganews.com>

Show all headers | View raw


William Yeo <wcyeo@shaw.ca> wrote:

> In article <slrniuv31b.1mpd.jim@wotan.magrathea.local>,
>  Jim <jim@magrathea.plus.com> wrote:
> 
> > From Apple's NSImageView docs: "When the user drags an image to the
> > image view, the image view replaces its old image and sends its action
> > message to its target."
> > 
> > What I can't seem to find in the docs is how to get the path/URL of the
> > dragged image. Any clues?
> > 
> > Jim
> 
> Have you enabled editing in the image and drag'n'drop ?

Yes, but I think it isn't as simple as that. I think I have to subclass
NSImageView and override some of the drag-and-drop stuff.

Jim
-- 
'65 Black Stingray - for barter only. Call 555-8972


Facetime ID:jim@magrathea.plus.com

Back to comp.sys.mac.programmer.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

NSImageView / NSImageWell - get URL of dragged image? Jim <jim@magrathea.plus.com> - 2011-06-08 15:50 +0100
  Re: NSImageView / NSImageWell - get URL of dragged image? William Yeo <wcyeo@shaw.ca> - 2011-06-08 13:12 -0700
    Re: NSImageView / NSImageWell - get URL of dragged image? jim@magrathea.plus.com (Jim) - 2011-06-08 22:07 +0100
      Re: NSImageView / NSImageWell - get URL of dragged image? William Yeo <wcyeo@shaw.ca> - 2011-06-10 13:30 -0700

csiph-web