arrowPosition
矢印の位置を返します
解説
矢印の位置を返します。
【NSPopUpArrowPosition】
● NSPopUpNoArrow
● NSPopUpArrowAtCenter
● NSPopUpArrowAtBottom
返り値
( NSPopUpArrowPosition )
ポップアップ矢印の位置
引数
フレームワーク
ApplicationKit
クラス
NSPopUpButtonCell
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { switch ([[popupbutton cell] arrowPosition]){ case NSPopUpNoArrow: NSLog(@"NSPopUpNoArrow"); break; case NSPopUpArrowAtCenter: NSLog(@"NSPopUpArrowAtCenter"); break; case NSPopUpArrowAtBottom: NSLog(@"NSPopUpArrowAtBottom"); break; default : NSLog(@"default"); } } @end