• 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: glenn andreas <email@hidden>
  • Date: Mon, 21 Nov 2005 15:55:46 -0600


On Nov 21, 2005, at 3:32 PM, Francis Derive wrote:


On Nov 21, 2005, at 6:40 PM, Scott Anguish wrote:

I think you needed to read a bit further down on the page...

NSScriptClassDescription is the only concrete subclass of NSClassDescription provided in Cocoa. It encapsulates an application’s scripting information.

So it's only useable with AppleScripting. If you don't define an applescript dictionary, I don't think you'll get anything out of it.

On Nov 21, 2005, at 10:23 AM, Francis Derive wrote:

Also, I can read in the Key-Value Coding Programming Guide, page 39, that "For example the 'attributes' method return the list of all attributes defined for a class", but this method belongs to the class NSMetaDataItem, which is another worry to get !

I continue searching for the light, but wouldn't wonder if anyone here could give me the light.


Scott,

I did read it, didn't understand, and now I am left with an ignorance worse than before.

From my understanding of, unless you explicitly implement your own NSClassDescription subclass, or provide an AppleScript dictionary (so that the system can use the NSScriptClassDescription), NSClassDescription isn't going to provide anything useful at all (since it doesn't try to get the limited "For free" information that could be obtained by playing with the runtime system which would be incomplete and inconsistent).





Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
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: Scott Anguish <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: Obtaining an array of the names of the attributes and relations of a class
  • Next by Date: Re: NSXML and Character References
  • 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