Re: Bogus Illegal Datasource Warning
Re: Bogus Illegal Datasource Warning
- Subject: Re: Bogus Illegal Datasource Warning
- From: Conrad Shultz <email@hidden>
- Date: Wed, 15 Feb 2012 10:32:11 -0800
On 2/15/12 9:24 AM, koko wrote:
> Did all that to no avail … and the .xib XML has only two IBConnection
> records for DataSource … one for the Outline View and one for the
> Table View.
>
> So, I cannot believe or even love the compiler warning and it is
> annoying as I like to clear all warnings.
The error you posted was a run-time error, not a compiler warning.
Seeing as you have not posted any analysis that you did at run-time
(other than that you know the data source methods are called, which
really doesn't tell us anything about the state of your code at the time
of the error), it doesn't seem that you have at all established that the
error is "bogus."
> Hey, Apple, tell me what to do beside spend a support incident or
> file a bug which will have a low priority.
As others have stated, your table view appears to think that a scroll
view (maybe its enclosing scroll view, maybe not - we don't have enough
information to tell) is its data source.
Even though we all have had our frustrations with framework bugs, it is
still good to assume that "the fault is not in our stars but in ourselves."
I'm inclined to concur with others in believing that either you have a
memory management issue that is causing your data source to be
accidentally overwritten or that you are inadvertently overwriting the
data source yourself.
How about:
1) Check the value of -dataSource at start (say, in -awakeFromNib).
2) Check the value of -dataSource after you get the errors.
Do they make sense? Do they match?
If the data source is getting corrupted during execution, you might try
breaking on -setDataSource: to see if you are directly or indirectly
changing it. You might also try breaking on your (expected) data
source's -dealloc to see if it's disappearing prematurely.
--
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________
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