All,

I had this code:

        [[fetchedResultsController sections] count]

Which always returned zero even thought sglite showed entries in the table.
When I put a break point on the getter, nothing happened.

Amazingly, it dawned on me pretty quickly that I needed this:

        [[self.fetchedResultsController sections] count]

(notice the 'self' at the start)

Is there some way to turn on a warning saying 'you are directly accessing an 
ivar where a (non-trivial) getter/setter exists'?

Thanks._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to