NSAllHashTableObjects
指定したハッシュテーブルでエレメントの全てを返します
NSArray * NSAllHashTableObjects ( NSHashTable * table );
解説
指定したハッシュテーブルでエレメントの全てを返します。
返り値
引数
( NSHashTable * )table
フレームワーク
Foundation
クラス
NSAllHashTableObjects
Function
使用可能
10.0
参照
NSCreateHashTable
NSFreeHashTable
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSHashTable *hTable = NSCreateHashTable(NSNonOwnedPointerHashCallBacks, 10); NSHashInsert(hTable, @"aaa"); NSHashInsert(hTable, @"bbb"); NSHashInsert(hTable, @"ccc"); NSLog([NSString stringWithFormat:@"%d",sizeof(hTable)]); NSLog([NSAllHashTableObjects(hTable) description]); } @end