Hi, Adam,
I suggest, even if you have it working, that you examine mmalc's
excellent "Bookmarks" example at <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
>. It was amazingly helpful to me, in particular, with regard to
setting up an array controller as a data source for drag-and-drop. :)
Cheers,
Andrew
On Feb 23, 2008, at 8:48 PM, Adam Gerson wrote:
My Appologies. This is working now. Can't exactly explain how. I set
the NSTableView's delegate outlet to my window controller and then it
worked.
Adam
On 2/23/08, Adam Gerson <[EMAIL PROTECTED]> wrote:
I think I have this very close to working. My understanding is that
for drag and drop to work I have to set some object as the
NSTableView's data source even though technically the table columns
are bound to an NSArrayController for data. In my data source
object I
have implemented the nessesery methods for drag and drop.
When the NSTableView has its data source outlet set drag and drop
works fine, but the columns do not get populated with data from the
ArrayController. As soon as I remove the data source outlet the data
returns to being bound to the ArrayController and the drag and drop
goes away.
How can I have a datasouce oulett for an NSTableView to provide drag
and drop support and have the NSTableColumn also get its data from
the
NSArrayController it is bound to?
Thanks,
Adam
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/andrew.merenbach%40ucla.edu
This email sent to [EMAIL PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]