NSMutableDictionary:setDictionary:
Home 目次>Foundation>NSMutableDictionary このサイトはこちらに移転しました。

setDictionary:

変更可能な辞書を別の辞書で置き換えます


-(void) setDictionary:(NSDictionary *)otherDictionary


【返り値】
   voidなし
【パラメータ】
   otherDictionary置き換える辞書


【解説】

変更可能な辞書を別の辞書で置き換えます。



【例文】


#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSDictionary *dic =
[NSDictionary dictionaryWithObjectsAndKeys:
@"a",@"あ",
@"i",@"い",
@"u",@"う",nil];
NSMutableDictionary *aMutableDictionary = [ NSMutableDictionary dictionaryWithCapacity:1 ];
[aMutableDictionary setDictionary:dic];
NSLog([aMutableDictionary description]);
}

@end


(C) 2000-2009 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>Foundation>NSMutableDictionary
修正日2006.12.26