• 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 / NSArrayController drag and drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView / NSArrayController drag and drop


  • Subject: Re: NSTableView / NSArrayController drag and drop
  • From: mmalcolm crawford <email@hidden>
  • Date: Tue, 16 May 2006 09:44:10 -0700


On May 16, 2006, at 5:41 AM, Pierce T. Wetter III wrote:

However when I run my application I am reminded to implement the table data source methods:
- (int) numberOfRowsInTableView: (NSTableView *) tableView
- (id) tableView: (NSTableView *) tableView
objectValueForTableColumn: (NSTableColumn *) tableColumn
row: (int) row
How come this is not needed in the sample code?
For whatever reason you need stubs for the data source methods when doing drag/drop, even though with an NSArrayController it doesn't actually use them, go figure.

This turns out not to be the case.


The only way I can replicate the error, though, is by not binding the value of any of the table columns...


mmalc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSTableView / NSArrayController drag and drop (From: Pierre Bernard <email@hidden>)
 >Re: NSTableView / NSArrayController drag and drop (From: "Pierce T. Wetter III" <email@hidden>)

  • Prev by Date: Re: Enable Personal File Sharing programatically?
  • Next by Date: Re: How to get buttonType from NSButton
  • Previous by thread: Re: NSTableView / NSArrayController drag and drop
  • Next by thread: Thumbnail hints
  • Index(es):
    • Date
    • Thread