| Home 目次>ApplicationKit>NSActionCell | |
intValue
アクションセルの編集後に整数値としてアクションセルの値を返します
-(int) intValue
【返り値】 | |
| int | 整数値 |
【解説】
アクションセルの編集後に整数値としてアクションセルの値を返します。
アクションセルがテキストでない、またはscan可能でなければ、0を返します。
【例文】
#import "MyObject.h"
@implementation MyObject
- ( IBAction )myAction:( id )sender
{
[but1 setIntValue: 12345678 ];
NSLog( @"%d" ,[but1 intValue]);
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSActionCell | 修正日2008.1.17 |