setAttributedAlternateTitle:
属性付き文字で代理タイトルをセットします
-(void)setAttributedAlternateTitle:(NSAttributedString *)aString:
解説
属性付き文字で代理タイトルをセットします
ボタンタイプによって代理のタイトルを表示しない場合があります。
返り値
( void )
なし
引数
( NSAttributedString * )aString
属性付き文字列
フレームワーク
ApplicationKit
クラス
NSButtonCell
Instance Methods
使用可能
10.0
参照
- setAlternateMnemonicLocation:
- setAlternateTitleWithMnemonic:
- setAttributedTitle:
- setButtonType:
- setFont:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //bCell1はボタンセル [bCell1 setAttributedAlternateTitle:[[NSAttributedString alloc] initWithString:@"NewTitle"]]; } @end