setAccessoryView:
プリントパネルにアクセサリービューをセットします
-(void)setAccessoryView:(NSView *)aView:
解説
プリントパネルにアクセサリービューをセットします。
返り値
( void )
なし
引数
( NSView * )aView
ビュー
フレームワーク
ApplicationKit
クラス
NSPrintPanel
Instance Methods
使用可能
10.0
参照
- accessoryView
例文
#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 ]; } -(void)didEndPrintSheet:(NSSavePanel *)savePanel returnCode:(int)returnCode conextInfo:(void *)contextInfo { if (returnCode == NSOKButton){ NSLog(@"YES"); }else{ NSLog(@"Cansel"); } } @end