Re: Bogus Illegal Datasource Warning
Re: Bogus Illegal Datasource Warning
- Subject: Re: Bogus Illegal Datasource Warning
- From: Wim Lewis <email@hidden>
- Date: Wed, 15 Feb 2012 17:01:11 -0800
> I get this warning:
>
> *** Illegal NSTableView data source (<NSScrollView: 0x19e0b00>). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:
>
> even though I have implemented numberOfRowsInTableView and tableView:objectValueForTableColumn:row: and I know this to be true because they are called.
If you set a breakpoint on NSLog(), you should be able to stop the program at the point it is emitting that message. Then you can look up the stack in the debugger and hopefully discover what object has an NSScrollView as a data source. My guess is that either:
- the warning is coming from a different NSTableView (or subclass of NSTableView) than you think it is, or
- the original data source has been accidentally deallocated and an NSScrollView was allocated at the address it used to have
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden