> Date: Sat, 02 Jul 2005 14:38:40 -0700
> From: Paul Berkowitz <email@hidden>
> Subject: Re: Changing AppleScript Records with Variable Identifiers
> NSDictionary
> is precisely a "rigid" immutable data structure: it's much more rigid than
> an AS record in that you can't change the value of keys.
Ouch. There goes my bullshit meter, redlining again.
NSMutableString* s =
[NSMutableString stringWithString:@"howdy"];
NSDictionary* d =
[NSDictionary dictionaryWithObject:s forKey:@"greeting"];
NSLog(@"%@",d); // {greeting = howdy; }
[s setString: @"hello"];
NSLog(@"%@",d); // {greeting = hello; }
No "more rigid" than an AS record. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
AppleScript: the Definitive Guide -
http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt
Take Control of Word 2004, Tiger, and more -
http://www.takecontrolbooks.com/tiger-customizing.html
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden