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: NSMutableDictionary using call method




On Mar 5, 2005, at 1:12 AM, Tetsuro KURITA wrote:

Thanks for the reply.

- (void)setObject:(id)anObject forKey:(id)aKey;

Philip Aker
http://www.aker.ca

I try as follows. But the problem is not solved.

set theDict to call method "dictionaryWithCapacity:" of class "NSMutableDictionary" with parameter {10}
call method "setObject:forKey:" of theDict with parameters {"hello", "hey"}
set theDescription to call method "description" of theDict
log theDescription -- the result of this log statement is "()"


Are there anyone to success using NSMutableDictionary in AppleScript ?
Is there a sample code of NSMutableDictionary for AppleScript studio ?


I'm very very new to AppleScript Studio so this may be nonsense but does passing "parameters {"hello", "hey"}" automatically cause the creation of NSStrings from "hello" and "hey"? setObject:forKey: requires both parameters to be Cocoa objects.


James P. Spencer
Rochester, MN

email@hidden

"Badges??  We don't need no stinkin badges!"

_______________________________________________
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
References: 
 >Re: NSMutableDictionary using call method (From: Philip Aker <email@hidden>)
 >Re: NSMutableDictionary using call method (From: Tetsuro KURITA <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.