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 Friday, Mar 4, 2005, at 10:01 US/Pacific, Tetsuro KURITA wrote:

I'm trying using "NSMutableDictionary" as follows. I want to add a new entry into an instance of NSMutableDictionary.

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


Above code does not works. call method "setValue:aKey:" statement does not give any effects. What is wrong ?.


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

Philip Aker
http://www.aker.ca

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