> Which are they, ivars or properties?
>
> I don't know.  I can't tell.
>
> Is there any way to inspect an instance and tell if it is a property or an
> ivar if both the property and ivar have the same name?
>
> Fun times, fun times.
>

You could use the Objective-C runtime to find out which things are properties.
Look for functions like:
objc_property_t * class_copyPropertyList ( Class cls, unsigned int *outCount );

ivars that are not properties will not show up as properties, so you
can cross-reference these with a master list you keep.


-Eric
-- 
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________

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

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

Reply via email to