paperName
用紙サイズを返します
解説
用紙サイズを返します。
用紙サイズはプリンタによって違います。
返り値
( NSString * )
用紙名
引数
フレームワーク
ApplicationKit
クラス
NSPrintInfo
Instance Methods
使用可能
10.0
参照
- setPaperName:
例文
#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:@"%@",[pInfo paperName]]); } -(void)didEndPageLayout { NSLog(@"close"); } @end