Drag 'n Drop 'n Delegation Dilemma
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.