Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Attributes to Cocoa properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attributes to Cocoa properties?



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

References: 
 >Attributes to Cocoa properties? (From: Devraj Mukherjee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.