Re: Attributes to Cocoa properties?
Re: Attributes to Cocoa properties?
- Subject: Re: Attributes to Cocoa properties?
- From: Jens Alfke <email@hidden>
- Date: Sat, 20 Aug 2011 11:03:23 -0700
On Aug 19, 2011, at 11:48 PM, Devraj Mukherjee wrote:
> I am trying to
> find a way that I can automate the parsing process by introspecting
> the class etc.
You can use low-level Objective-C APIs to introspect the instance variables of a class by type/name/offset.
> To assist with the introspection I was hoping to use for lack of
> better words, something like decorators in Python to provide extra
> information about the property.
There’s no mechanism to let you tag an instance variable or property with custom metadata. But you can find its class, which might be enough information for your purposes.
—Jens_______________________________________________
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