setStringValue:
文字列値をセットします
-(void)setStringValue:(NSString *)aString:
解説
文字列値(aString)をセットします。
返り値
( void )
なし
引数
( NSString * )aString
文字列
フレームワーク
ApplicationKit
クラス
NSCell
Instance Methods
使用可能
10.0
参照
- stringValue
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [bCell1 setStringValue:@"text"]; //bCell1はテキストフィールドセル if ([bCell1 hasValidObjectValue]){ NSLog([bCell1 stringValue]); }else{ NSLog(@"nil"); } } @end