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

Re: NSImageView question


  • Subject: Re: NSImageView question
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 8 Aug 2002 13:36:53 -0700

On Thursday, August 8, 2002, at 10:59 AM, Howard Griffith wrote:

Hello all,

I am fairly new to the cocoa world and have a quick question about using a
NSImageView.

What I would like to do is use the NSImageView so that if you drag an
application or document icon to it from outside my application it will add
information about the dragged item to a Table View. If you drag an item
from the Table View to the NSImageView it would act like a Trash Can and
allow you to remove the item from the Table View after confirming you want
to remove it.

Can this be done properly using the NSDragging protocol ??

Yes, you can do this by implementing the dragging methods in an NSImageView subclass.

I have a somewhat out-of-date example of this at stepwise, at:

http://softrak.stepwise.com/display?pkg=596&os=10

...which I need to test under Jaguar. In the meantime, it should show you what you need to do.

-jcr



John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSImageView question (From: Howard Griffith <email@hidden>)

  • Prev by Date: CarbonSound warning during build
  • Next by Date: Re: What's the best Cocoa book around?
  • Previous by thread: NSImageView question
  • Next by thread: What's the best Cocoa book around?
  • Index(es):
    • Date
    • Thread