Re: Bogus Illegal Datasource Warning
Re: Bogus Illegal Datasource Warning
- Subject: Re: Bogus Illegal Datasource Warning
- From: Aaron Burghardt <email@hidden>
- Date: Wed, 15 Feb 2012 17:23:19 -0500
On Feb 15, 2012, at 12:24 PM, koko wrote:
> Hey, Apple, tell me what to do beside spend a support incident or file a bug which will have a low priority.
Learn to debug? ;-)
Seriously, set a symbolic breakpoint on "-[NSTableView setDelegate:]" and confirm which table is getting its delegate set and who the delegate is for each call. This technote describes how to reference the args to a function:
https://developer.apple.com/library/mac/#technotes/tn2124/_index.html
The setDelegate message is sent by the objc_msgSend function, which takes two "hidden" parameters. The first is the target object (e.g., the table view) and the second is the method called (e.g., setDelegate:). The remaining arguments are the arguments to the method, so the third argument will be the delegate object. You should look for the setDelegate being called more frequently than you expect or the table view or the delegate aren't the objects you expect. Use the "po" command in the debugger, for example, to print the descriptions of the Cocoa objects.
Also, if you set the identifier on controls in Interface Builder, that can help you figure out which tableview you broke on (by printing the identifier of the target object).
Regards,
Aaron
_______________________________________________
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