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



I think that "setObject:forKey:" method does not works.
I used "dictionaryWithObject:forKey:" method instead of "dictionaryWithCapacity:" as follows.


set theDict to call method "dictionaryWithObject:forKey:" of class "NSMutableDictionary" with parameters {"aaa", "hello"}
call method "setObject:forKey:" of theDict with parameters {"hey", "hello"}
set theDescription to call method "description" of theDict
log theDescription -- the result of this log statement is "{hello = aaa; }"


The instance of "NSMutableDictionary" is created. But I can not change contents of the instance.

Tetsuro KURITA

_______________________________________________
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.