macOS/iOS API解説

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

目次

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