• 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
NSTableView: bindings with drag and drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: bindings with drag and drop


  • Subject: NSTableView: bindings with drag and drop
  • From: Chuck Soper <email@hidden>
  • Date: Thu, 24 Jan 2013 17:31:16 -0800
  • Thread-topic: NSTableView: bindings with drag and drop

When I use bindings for NSTableView and implement drag and drop, an
"Illegal NSTableView data source" error is written to the console. This is
because I use NSTableViewDataSource methods to implement drag and drop.

I'm able to prevent the error message if I declare these bogus
NSTableViewDataSource protocol methods:
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
  { return 0; }
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(NSInteger)rowIndex
  { return nil; }

Everything seems to work fine. Has anyone else encountered this issue?
Is there a better way to avoid this error message? Or, is this considered
a bug?



Thanks,
Chuck


_______________________________________________

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

  • Follow-Ups:
    • Re: NSTableView: bindings with drag and drop
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Coordinate conversions in CALayer
  • Next by Date: Re: NSTableView: bindings with drag and drop
  • Previous by thread: Re: Getting mouse loc in flagsChanges method
  • Next by thread: Re: NSTableView: bindings with drag and drop
  • Index(es):
    • Date
    • Thread