• 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: Obtaining an array of the names of the attributes and relations of a class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining an array of the names of the attributes and relations of a class


  • Subject: Re: Obtaining an array of the names of the attributes and relations of a class
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 21 Nov 2005 13:52:01 -0800


On Nov 21, 2005, at 7:23 AM, Francis Derive wrote:
So, in the code above I just used the NSObject's instance method "classDescription" which gives a NSClassDescription object, and I know that the application of attributeKeys method on that object should have been "Overriden", but I don't know what to do about that, and so...

What are you actually trying to achieve?

If you need to get the instance variables defined for a class, you can use the Objective-C runtime functions -- see <http:// developer.apple.com/documentation/Cocoa/Reference/ObjCRuntimeRef/ Reference/reference.html>.

If you need additional "meta" information (for example, which ivars are attributes and which are relationships), then you need to provide it yourself...

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Obtaining an array of the names of the attributes and relations of a class (From: Francis Derive <email@hidden>)
 >Re: Obtaining an array of the names of the attributes and relations of a class (From: Scott Anguish <email@hidden>)
 >Re: Obtaining an array of the names of the attributes and relations of a class (From: Francis Derive <email@hidden>)

  • Prev by Date: Re: adding Foundation framework to a Carbon application
  • Next by Date: Re: Obtaining an array of the names of the attributes and relations of a class
  • Previous by thread: Re: Obtaining an array of the names of the attributes and relations of a class
  • Next by thread: Re: Obtaining an array of the names of the attributes and relations of a class
  • Index(es):
    • Date
    • Thread