locationOfPrintRect:
ページ上の位置を決めます
-(NSPoint)locationOfPrintRect:(NSRect)aRect:
解説
ページ上の位置を決めます。
aRectで描画する矩形が送られてきます。superでこのメソッドを呼び出すとセンターの位置になるように返されるので、そこから調整できます。
返り値
( NSPoint )
矩形
引数
( NSRect )aRect
範囲
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
例文
- (NSPoint)locationOfPrintRect:(NSRect)aRect { NSLog(@"locationOfPrintRect %.2f,%.2f",aRect.size.width,aRect.size.height); return [super locationOfPrintRect:aRect]; }