On Jul 19, 2009, at 11:21 AM, Kyle Sluder <[email protected]> wrote:
On Jul 18, 2009, at 11:52 PM, BJ Homer <[email protected]> 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 protected])
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 [email protected]