NSCopyHashTableWithZone
ハッシュテーブルのコピーをします
NSHashTable * NSCopyHashTableWithZone ( NSHashTable * table , NSZone * zone );
解説
ハッシュテーブルのコピーをします。
返り値
引数
( NSHashTable * )table
( NSZone * )zone
フレームワーク
Foundation
クラス
NSCopyHashTableWithZone
Function
使用可能
10.0
参照
NSCreateHashTable
NSCreateHashTableWithZone
"NSHashTableCallBacks" (structure)
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHashTable *hTable = NSCreateHashTable(NSNonOwnedPointerHashCallBacks, 10); NSHashTable *chTable =NSCopyHashTableWithZone(hTable, [self zone]); NSLog([NSString stringWithFormat:@"%d",sizeof(hTable)]); NSLog([NSString stringWithFormat:@"%d",sizeof(chTable)]); } @end