macOS/iOS API解説

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

目次

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