setIntegerValue:
NSIntegerを使ってレシーバーの値をセットします
-(void)setIntegerValue:(NSInteger)anInteger:
解説
NSIntegerを使ってレシーバーの値をセットします。
setObjectValue:メソッドを使ってセットします。テキストタイプのセルでない場合は機能しません。
返り値
( void )
引数
( NSInteger )anInteger
セットする整数値
フレームワーク
ApplicationKit
クラス
NSCell
使用可能
10.5
参照
-integerValue
-setIntValue:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [bCell1 setIntegerValue:12345]; //bCell1はテキストフィールドセル NSLog([NSString stringWithFormat:@"%d",[bCell1 integerValue]]); } @end