runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:
印刷設定パネルをシートで表示して、モーダルを開始します
-(void)runModalPageLayoutWithPrintInfo:(NSPrintInfo *)printInfo: delegate:(id)delegate: didRunSelector:(SEL)didRunSelector: contextInfo:(void *)contextInfo:
解説
印刷設定パネルをシートで表示して、モーダルを開始します。
返り値
( void )
なし
引数
( NSPrintInfo * )printInfo
印刷設定
( id )delegate
デリゲート
( SEL )didRunSelector
アクションセレクタ
( void * )contextInfo
追加情報
フレームワーク
ApplicationKit
クラス
NSDocument
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { //docはNSDocument [doc runModalPageLayoutWithPrintInfo:[NSPrintInfo sharedPrintInfo] delegate:self didRunSelector:@selector(layoutAction:) contextInfo:nil ]; } - (void)layoutAction:(id)sender { NSLog(@"!!!"); } @end