frame
親ビューでの位置をNSRectで返します
解説
親ビューでの位置をNSRectで返します。
回転しているかもしれないのでframeRotationメソッドを使用してチェックします。
返り値
( NSRect )
superviewでの矩形
引数
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
- bounds
- setFrame:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { [sender setFrame : NSMakeRect(0,0,100,30) ]; [info setFloatValue:[sender frame].size.width]; [[sender window] display]; } @end