addToolTipRect:owner:userData:
ツールティップを追加します
-(NSToolTipTag)addToolTipRect:(NSRect)aRect: owner:(id)anObject: userData:(void *)data:
解説
ツールティップを追加します。
返り値
( NSToolTipTag )
ツールティップタグ
引数
( NSRect )aRect
範囲
( id )anObject
オブジェクト
( void * )data
データ
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
- removeToolTip:
- removeAllToolTips
例文
#import "MyObject.h" #import "MyObject1.h" @implementation MyObject - (IBAction)myAction:(id)sender { [info setFrameRotation : -10 ]; [[[sender window] contentView] addToolTipRect:NSMakeRect(0,0,30,30) owner:obj userData:[NSData alloc]]; } @end