setImportsGraphics:
テキストフィールドは画像ファイルをドロップできるかをセットします
-(void)setImportsGraphics:(BOOL)flag:
解説
テキストフィールドは画像ファイルをドロップできるかをセットします。
YESをセットすると、テキストフィールドはドラッグされた画像を受け入れます。
NOをセットすると受け入れません。
返り値
( void )
なし
引数
( BOOL )flag
画像ドロップYES/NO
フレームワーク
ApplicationKit
クラス
NSTextField
Instance Methods
使用可能
10.0
参照
- setAllowsEditingTextAttributes:
- setImportsGraphics:(NSTextView)
- importsGraphics
例文
[myOutlet setImportsGraphics: YES];