• 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
Re: NSTableView with bindings as a drag destination.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableView with bindings as a drag destination. (From: Martin van-Eerde <email@hidden>)

  • Prev by Date: Re: NSNumber numberWithBool
  • Next by Date: Re: MenuStatusItem --
  • Previous by thread: NSTableView with bindings as a drag destination.
  • Next by thread: NSNumber numberWithBool
  • Index(es):
    • Date
    • Thread