highlightMode
マウスクリックしたときにハイライトするかを返します
解説
マウスクリックしたときにハイライトするかを返します。
返り値
( BOOL )
YES/NO
引数
フレームワーク
ApplicationKit
クラス
NSStatusItem
Instance Methods
使用可能
10.0
参照
- setHighlightMode:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSStatusBar *sBar = [NSStatusBar systemStatusBar]; NSStatusItem *sItem = [sBar statusItemWithLength:NSVariableStatusItemLength]; [sItem retain]; [sItem setTitle: NSLocalizedString(@"SB_title",@"")]; [sItem setHighlightMode:YES]; [sItem setMenu:sbMenu]; if ([sItem highlightMode]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end