macOS/iOS API解説

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

目次

tabViewItemAtPoint:

ポイントで指定される位置のタブを返します
-(NSTabViewItem *)tabViewItemAtPoint:(NSPoint)point:

解説

ポイントで指定される位置のタブを返します。

返り値

( NSTabViewItem * )

タブビュー項目

引数

( NSPoint )point

位置

フレームワーク

ApplicationKit

クラス

NSTabView

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
//myOutletはTabView
NSLog([NSString stringWithFormat:@"%.1f",([myOutlet frame].size.height)-10]);

NSLog([[myOutlet tabViewItemAtPoint:
            NSMakePoint(([myOutlet frame].size.width)/2+10,10)
            ] label]);

}

@end