• 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: NSDictionary simulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary simulation


  • Subject: Re: NSDictionary simulation
  • From: Emmanuel <email@hidden>
  • Date: Wed, 18 Jan 2006 22:46:15 +0100

At 4:24 PM -0500 1/18/06, email@hidden wrote:
can a list of property names be obtained from a variable of class record?
can the property name of a variable of class record be accessed via a variable of class string?


does anyone know how to use class record to store an actual varying dictionary of unknown keys?

Maybe you're wanting to use the PList Suite in XMLLib.osax, check:

<http://www.satimage-software.com/en/plist_suite.html>

Here's an example:

set p to PlistNew {a:1}
PlistGetXML p

-->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>a</key>
<integer>1</integer>
</dict>
</plist>



PlistGet (PlistChild p key "a") --> 1


Emmanuel _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSDictionary simulation (From: email@hidden)

  • Prev by Date: NSDictionary simulation
  • Next by Date: InDesign and XMP
  • Previous by thread: NSDictionary simulation
  • Next by thread: Re: NSDictionary simulation
  • Index(es):
    • Date
    • Thread