alternateImage
ハイライト状態の画像を返します
解説
ハイライト状態の画像を返します。なければnilを返します。
返り値
( NSImage * )
画像
引数
フレームワーク
ApplicationKit
クラス
NSBrowserCell
Instance Methods
使用可能
10.0
参照
- setAlternateImage:
例文
#import "butAction.h" @implementation butAction - (IBAction)myAction:(id)sender { NSImage *img = [NSImage alloc]; NSImage *altimg = [NSImage imageNamed: @"NSApplicationIcon" ]; [[myOutlet selectedCell] setAlternateImage:altimg]; img = [[myOutlet selectedCell] alternateImage]; [image setImage:img]; NSLog([[myOutlet selectedCell] className]); NSLog(@"!!!"); } @end