• 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
Drag 'n Drop 'n Delegation Dilemma
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag 'n Drop 'n Delegation Dilemma


  • Subject: Drag 'n Drop 'n Delegation Dilemma
  • From: Demitri Muna <email@hidden>
  • Date: Sat, 15 Jun 2002 20:36:28 -0700

Hello,

I am trying to create an NSButton in my application that I can drop certain items onto. I have done a lot of reading and found that different people have recommended several ways to to this. One way is to subclass NSButton and add implement the drag methods (performDragOperation, etc.) there.

Is there a way (as I am led to believe) to do this that is preferable through a delegate? How would this be done? I've tried to implement the methods in my simple controller class, set an NSTextField's delegate to that class, but the methods are not called. Is this the right approach, or am I missing something big? Also, if there were two items in the window that were draggable, would I need to implement the different drag routines in another way?

Just trying to wrp my mind around these Cocoa concepts. :)

Thanks!

Demitri Muna
_______________________________________________
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.

  • Prev by Date: Re: NSConnection via NSSocketPort
  • Next by Date: User Entered Root Password (kmodload)
  • Previous by thread: Re: Newbie-Initialization Question
  • Next by thread: Re: Drag 'n Drop 'n Delegation Dilemma
  • Index(es):
    • Date
    • Thread