orientation
印刷方向を返します
解説
印刷方向を返します。
【NSPrintingOrientation】印刷方向
● NSPortraitOrientation 縦向き
● NSLandscapeOrientation 横向き
返り値
( NSPrintingOrientation )
印刷の向き
引数
フレームワーク
ApplicationKit
クラス
NSPrintInfo
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSPrintInfo *pInfo = [NSPrintInfo sharedPrintInfo] ; NSPageLayout *pageLayout = [NSPageLayout pageLayout]; [pageLayout beginSheetWithPrintInfo:pInfo modalForWindow:[sender window] delegate:self didEndSelector:@selector(didEndPageLayout) contextInfo:nil ]; NSLog([NSString stringWithFormat:@"%d",[pInfo orientation]]); } -(void)didEndPageLayout { NSLog(@"close"); } @end