Re: NSTableView with bindings as a drag destination.
Re: NSTableView with bindings as a drag destination.
- Subject: Re: NSTableView with bindings as a drag destination.
- From: Henrik Nyh <email@hidden>
- Date: Mon, 29 Jan 2007 15:45:07 +0100
Martin van-Eerde wrote:
> Hello,
>
> I would like to implement a NSTableView as a drag destination.
>
> I found several excellent tutorials including:
> http://cocoadevcentral.com/articles/000056.php
>
http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/Tasks/DraggingFiles.html
>
> However the table I want to use as a destination is feed data from
> Core Data via Cocoa Bindings. I note from the Apple documentation
> that NSTableView already implements some of the drag API and that it
> sends a message to it's data source when a item is dragged over it.
>
> Since the table is linked via bindings it currently does not have a
> data source. Can i just add one without effecting the bindings?
>
> Thanks Martin
Hi,
Yes, bindings and data source methods can be combined. See
http://www.cocoadev.com/index.pl?CoreDataDragAndDropWithNSTableView for
some example code.
Good luck!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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