setBackgroundColors:
背景色をセットします
-(void)setBackgroundColors:(NSArray *)colors :
解説
背景色をセットします。配列の順に背景色となります。
デフォルトに戻す場合は、空の配列かnilを渡します。
返り値
( void )
引数
( NSArray * )colors
フレームワーク
ApplicationKit
クラス
NSGridView
使用可能
10.5
参照
例文
- (IBAction)myAction:(id)sender { [gridView setBackgroundColors:[NSArray arrayWithObjects:[NSColor redColor],[NSColor greenColor],nil]] ; NSLog([[gridView backgroundColors] description]); }