textBackgroundColor
テキスト背景のカラーを返します
解説
テキスト背景のカラーを返します。
テキストが選択されるときselectedTextBackgroundColorに変わります。
返り値
( NSColor * )
カラー
引数
フレームワーク
ApplicationKit
クラス
NSColor
Class Methods
使用可能
10.0
参照
+ textColor
例文
#import "Controller.h" @implementation Controller - (IBAction)myAction:(id)sender { NSColor *theColor = [NSColor textBackgroundColor]; [name setStringValue:[theColor colorSpaceName]]; [name setTextColor:theColor]; [r setStringValue:[theColor colorNameComponent]]; [alpha setFloatValue:[theColor alphaComponent]]; } @end