• 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: Scott Anguish <email@hidden>
  • Date: Mon, 21 Nov 2005 18:40:35 -0500

Ah, sorry.

You can't use that class to investigate what attributes are available for a class. It's only used by AppleScript, and that's it. As others have said, you'd have to implement the functionality yourself (using the runtime stuff that mmalc pointed out)

You also said
I would like to be able to make it from these NSClassDescription and NSMetaDataItem that the docs introduce, without my understanding of their usage.

these are entirely different things... no relationship between the two.. one is an abstract class that there is only a single concrete instance of (and it's only for looking at AppleScript dictionaries), and the other is data returned by Spotlight that contains the metadata for a file on disk.


oh, malc phfffft.


On Nov 21, 2005, at 4:55 PM, glenn andreas 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.

_______________________________________________ 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>)

  • Prev by Date: Re: Distributed Objects - which frameworks?
  • Next by Date: Foundation Tool & NSApplicationMain?
  • 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