• 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: Bogus Illegal Datasource Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bogus Illegal Datasource Warning
      • From: koko <email@hidden>
References: 
 >Re: Bogus Illegal Datasource Warning (From: Matt Neuburg <email@hidden>)
 >Re: Bogus Illegal Datasource Warning (From: koko <email@hidden>)
 >Re: Bogus Illegal Datasource Warning (From: email@hidden)
 >Re: Bogus Illegal Datasource Warning (From: koko <email@hidden>)

  • Prev by Date: Re: Bogus Illegal Datasource Warning
  • Next by Date: Re: Bogus Illegal Datasource Warning
  • Previous by thread: Re: Bogus Illegal Datasource Warning
  • Next by thread: Re: Bogus Illegal Datasource Warning
  • Index(es):
    • Date
    • Thread