• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attributes to Cocoa properties?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: Attributes to Cocoa properties?
  • Next by Date: Re: Very different Document Saving in Lion, even without enabling asynchronous
  • Previous by thread: Attributes to Cocoa properties?
  • Next by thread: Document-based app: UI item validation
  • Index(es):
    • Date
    • Thread