• 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: Tue, 22 Nov 2005 02:37:15 -0800


On Nov 22, 2005, at 2:21 AM, Francis Derive wrote:

It is where was my misunderstanding : I thought/beleived/hoped that NSClassDescription would provide the class description info "freely" (as it is the case with the Objective-C runtime functions pointed to by mmalcomm, or with the Core Data's NSEntityDescription pointed to by John Timmer ) - just because everything of a class is known to the system through its class declaration.

The runtime functions, though, do not provide the same level of detail as NSClassDescription or NSEntityDescription. I was careful in my reply to state, "If you need to get the *instance variables* defined for a class..." and to contrast this information with "which ivars are attributes and which are relationships". (There may be heuristics you could use to examine the instance variables to guess at whether they're likely to be attributes or relationships (if something's an instance of a simple Foundation class, for example, it's likely to be an attribute), but these may be complex and error- prone...) You haven't yet said, though, why you need this information, and why you could not provide it in a simpler way?


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


  • Follow-Ups:
    • Re: Obtaining an array of the names of the attributes and relations of a class
      • From: Francis Derive <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>)
 >Re: Obtaining an array of the names of the attributes and relations of a class (From: glenn andreas <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: Obtaining an array of the names of the attributes and relations of a class
  • Next by Date: Finding application's idle time?
  • 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