macOS/iOS API解説

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

目次

setAllowsEditingTextAttributes:

テキストフィールドのテキスト属性を変えられるかをセットします
-(void)setAllowsEditingTextAttributes:(BOOL)flag:

解説

テキストフィールドのテキスト属性を変えられるかをセットします。
YESをセットすると、変更することが出来るようになります。
NOをセットすると、変更することが出来なくなります。

返り値

( void )

なし

引数

( BOOL )flag

テキスト属性変更YES/NO

フレームワーク

ApplicationKit

クラス

NSTextField

Instance Methods

使用可能

10.0

参照

- setImportsGraphics:
- allowsEditingTextAttributes

例文

[myOutlet setAllowsEditingTextAttributes: YES];