• 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: NSAppleEventDescriptor/AEKeyword question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleEventDescriptor/AEKeyword question


  • Subject: Re: NSAppleEventDescriptor/AEKeyword question
  • From: Brian Webster <email@hidden>
  • Date: Sat, 7 Sep 2002 08:51:31 -0500

On Saturday, September 7, 2002, at 03:56 AM, email@hidden wrote:

Now, I'm not exactly sure what an AEKeyword is, or what I need to use
for it in this situation. I've opened BBEdit's scripting dictionary in
Script Debugger, viewing it as "AppleEvents", and I see that the
"default file name" property corresponds to the code "HDfn", and the
"root directory" property corresponds to "HRdr". I'm not sure if that's
relevant here or not.

Could someone enlighten me as to how to construct appropriate
AEKeywords?

An AEKeyword is simply a four character code, so you can just do:

fileNameDescriptor = [prefsDescriptor descriptorForKeyword:'HDfn'];
rootDirDescriptor = [prefsDescriptor descriptorForKeyword:'HRdr'];

You might want to define constants for the codes to make it a little more readable.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: how to centralize functionality more elegantly?
  • Next by Date: Objects between threads
  • Previous by thread: NSAppleEventDescriptor/AEKeyword question
  • Next by thread: Objects between threads
  • Index(es):
    • Date
    • Thread