Re: How can my program be notified when a NSImageView is populated with a NSImage?
Re: How can my program be notified when a NSImageView is populated with a NSImage?
- Subject: Re: How can my program be notified when a NSImageView is populated with a NSImage?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 15 Sep 2004 15:03:01 -0700
On Sep 15, 2004, at 2:33 PM, Yann Bizeul wrote:
Hello
I have a NSImageView that is editable. When the user slides
an image into the NSImageView, I wish to be notified so that I can
act on it (display a help panel, etc.).
You can try subclass and overriding setImage: But I don't know if this
can help in a drag and drop situation.
The other way would be to handle drag & drop yourself
Yes you could do the above but you need to ask yourself why you would
need to do that for an operation that is likely needed by folks...
since it is likely needed it likely provides a way.
In this case NSImageView is a sub-class of NSControl which tells you
that it supports the target/action paradigm [1].
-Shawn
[1]
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CommunicateWithObjects/Articles/TargetAction.html>
_______________________________________________
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