• 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 can my program be notified when a NSImageView is populated with a NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How can my program be notified when a NSImageView is populated with a NSImage? (From: "Frederick C. Lee" <email@hidden>)
 >Re: How can my program be notified when a NSImageView is populated with a NSImage? (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: NSDragOperationMove type drag&drop in outline views
  • Next by Date: Re: [Moderator] Cocoa and list resources
  • Previous by thread: Re: How can my program be notified when a NSImageView is populated with a NSImage?
  • Next by thread: NSDragOperationMove type drag&drop in outline views
  • Index(es):
    • Date
    • Thread