initWithUnsignedShort:
符号無しShortの数値オブジェクトを初期化して返します
-(id)initWithUnsignedShort:(unsigned short)value:
解説
符号無しShortの数値オブジェクト(NSNumber)を初期化して返します。
返り値
( id )
NSNumber
引数
( unsigned short )value
unsigned short値
フレームワーク
Foundation
クラス
NSNumber
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSNumber *num = [[[NSNumber alloc] initWithUnsignedShort:60000] autorelease]; [info setDoubleValue:[num doubleValue]]; } @end