Re: Obtaining an array of the names of the attributes and relations of a class
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