Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing AppleScript Records with Variable Identifiers



> 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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.