macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

NSCreateHashTableWithZone

指定したゾーンに新しいハッシュテーブルをつくります
NSHashTable *  NSCreateHashTableWithZone ( 
                NSHashTableCallBacks   callBacks , 
                unsigned int   capacity , 
                NSZone *   zone );

解説

指定したゾーンに新しいハッシュテーブルをつくります。

返り値

引数

( NSHashTableCallBacks )callBacks
( unsigned int )capacity
( NSZone * )zone

クラス

NSCreateHashTableWithZone

Function

使用可能

10.0

参照

NSCreateHashTable

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{

NSHashTable *hTable = NSCreateHashTableWithZone(NSNonOwnedPointerHashCallBacks, 10, [self zone]);
NSLog([NSString stringWithFormat:@"%d",sizeof(&hTable)]);

}

@end