Re: Drag with NSTableView
Re: Drag with NSTableView
- Subject: Re: Drag with NSTableView
- From: "I. Savant" <email@hidden>
- Date: Mon, 13 Aug 2007 10:15:42 -0400
> Yes I did...
Did you .... set the class of your array controller instance to use
your custom subclass in IB? If you've done all of this, there
shouldn't be anything preventing the delegate methods from being
called.
> What about binding? (I told you i can't open the fnib file for
> WithBindings sample code...)
Bindings has *nothing* to do with it at this point. Whether the
object you've designated as a delegate is an array controller, a
direct NSObject sublcass, or a *button*, if it answers to the delegate
methods and is designated as the delegate, it'll be called.
Also, I haven't looked at the "WithBindings" sample code, so I'm not
sure what problem you're having there, but my advice is the same
nonetheless.
Maybe you should practice with a test project just getting table
drag and drop working *without* using Bindings (since you seem to be
getting confused with the involvement of Bindings). Use the table data
source methods. You'll see DnD with NSTableView is a fairly trivial
thing.
Short of this advice, you're probably going to have to get more
specific or post your project somewhere for list members to take a
look at. What you're trying to do really is pretty easy, but you have
to make sure all the afore-mentioned requirements are fulfilled.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden