Re: Custom NSArrayController - Dynamic Class?
Re: Custom NSArrayController - Dynamic Class?
- Subject: Re: Custom NSArrayController - Dynamic Class?
- From: BJ Homer <email@hidden>
- Date: Sun, 19 Jul 2009 14:52:00 -0600
On Jul 19, 2009, at 11:21 AM, Kyle Sluder <email@hidden> wrote:
On Jul 18, 2009, at 11:52 PM, BJ Homer <email@hidden> wrote:
Actually, use [object setIndex:] instead, and cast it as an
IndexedObject*. That will get rid of your compiler warnings.
-BJ
We're talking about the case in which you don't have a managed
object subclass, and therefore there is nothing to cast to.
--Kyle Sluder
Oh, right. Cast it to (id) then. Though if it's already passed in as
an id, that's obviously unnecessary. Point is, calling setIndex:
instead of object.index= will let it compile w/o warnings, in certain
situations.
Thanks for the correction.
-BJ
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden