macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

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