macOS/iOS API解説

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

目次

setUpFieldEditorAttributes:

テキストオブジェクトの背景属性をレシーバセルの背景属性にします
-(NSText *)setUpFieldEditorAttributes:(NSText *)textObj:

解説

テキストオブジェクトの背景属性をレシーバセルの背景属性にします。
変更後のテキストオブジェクトを返します。

返り値

( NSText * )

文字列

引数

( NSText * )textObj

テキスト

フレームワーク

ApplicationKit

クラス

NSCell

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSText *text = [[[NSText alloc] init] autorelease];

NSLog([[text backgroundColor] description]);
text = [bCell1 setUpFieldEditorAttributes:tv];
NSLog([[text backgroundColor] description]);
}
@end