Re: Illegal NSTableView data source
Re: Illegal NSTableView data source
- Subject: Re: Illegal NSTableView data source
- From: Robert Cerny <email@hidden>
- Date: Sat, 13 Jan 2007 18:13:31 +0100
Hmm,
it's weird. I reconnected the datasource outlet and the error
disappeared. Check mmalc sample named Bookmarks, he doesn't have
mentioned methods implemented as well and everything works as requested.
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
Robert
On 13.1.2007, at 17:59, Sherm Pendley wrote:
Then you need to implement *all* of the required methods in your
data source object. It's an all-or-nothing deal. Like Adam said,
all you need is "do nothing" methods like returning 0 from
"numberOfRowsInTable:", etc.
sherm--
On Jan 13, 2007, at 11:49 AM, Robert Cerny wrote:
I need to have the subclassed arraycontroller datasource to
support drag & drop.
Robert
On 13.1.2007, at 14:30, Sherm Pendley wrote:
Check in IB to make sure you haven't connected the table view's
"dataSource" outlet. Since you're using bindings, the table view
doesn't need a data source object. You might also have called
"setDataSource:" in code somewhere.
sherm--
On Jan 13, 2007, at 2:25 AM, Robert Cerny wrote:
Well,
nothing against it. But I didn't have these methods implemented,
everything worked and suddenly I get this error.
Robert
On 13.1.2007, at 2:11, Adam Leonard wrote:
Just implement both of the methods referenced in the assertion
and return anything you want (probably 0 for
numberOfRowsInTableView: and nil for
tableView:objectValueForTableColumn:row:)
Bindings will still do its magic, everything will still work,
and you will not get those errors.
Adam Leonard
On Jan 12, 2007, at 2:08 PM, Robert Cerny wrote:
Hi folks,
I have ann issue which is driving me nuts. I'm writing a small
app, where I use bindings. I implemented a subclass of
NSArrayController to support drag&drop into my tableview.
My problem is that the console started to report:
*** Illegal NSTableView data source (<DDArrayController:
0x35e6f0>[object class: RCTPath, number of selected objects:
0]). Must implement numberOfRowsInTableView: and
tableView:objectValueForTableColumn:row:
Everything is working correctly but this error is very annoying.
Any idea?
Robert
_______________________________________________
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:
40caffeinatedcocoa.com
This email sent to email@hidden
_______________________________________________
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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:
app.org
This email sent to email@hidden
Web Hosting by West Virginians, for West Virginians: http://wv-
www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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