setTypingAttributes:
タイピング属性をセットします
-(void)setTypingAttributes:(NSDictionary *)attributes:
解説
タイピング属性をセットします。
選択が変わるときはいつでも、タイピング属性は自動的にリセットされる。
返り値
( void )
なし
引数
( NSDictionary * )attributes
属性
フレームワーク
ApplicationKit
クラス
NSTextView
Instance Methods
使用可能
10.0
参照
- typingAttributes
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDictionary *dic; [myOutlet insertText:@"new text"]; dic = [myOutlet typingAttributes]; [myOutlet setTypingAttributes:dic]; [myOutlet insertText:[dic description]]; } @end