setPlaceholderAttributedString:
属性付きプレースフォルダテキストをセットします
-(void)setPlaceholderAttributedString:(NSAttributedString *)string:
解説
属性付きプレースフォルダテキストをセットします。
返り値
( void )
なし
引数
( NSAttributedString * )string
フレームワーク
ApplicationKit
クラス
NSTextFieldCell
Instance Methods
使用可能
10.3
参照
-placeholderAttributedString
-setPlaceholderString:
例文
[myOutlet setPlaceholderAttributedString:[[NSAttributedString alloc] initWithString:@"string"]];
NSLog([[myOutlet placeholderAttributedString] string]);