accessoryView
プリントパネルのアクセサリービューを返します
解説
プリントパネルのアクセサリービューを返します。
返り値
( NSView * )
ビュー
引数
フレームワーク
ApplicationKit
クラス
NSPrintPanel
Instance Methods
使用可能
10.0
参照
- setAccessoryView:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSPrintPanel *pPanel = [NSPrintPanel printPanel]; [pPanel setAccessoryView:customView]; [pPanel beginSheetWithPrintInfo:[NSPrintInfo sharedPrintInfo] modalForWindow:myWindow delegate:self didEndSelector:@selector(didEndPrintSheet:returnCode:conextInfo:) contextInfo:nil ]; NSLog([[pPanel accessoryView] className]); } -(void)didEndPrintSheet:(NSSavePanel *)savePanel returnCode:(int)returnCode conextInfo:(void *)contextInfo { if (returnCode == NSOKButton){ NSLog([NSString stringWithFormat:@"%d",returnCode]); }else{ NSLog(@"Cansel"); } } @end