macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:

印刷レイアウト設定シートウインドウを表示します
-(void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo:
                modalForWindow:(NSWindow *)docWindow:
                delegate:(id)delegate:
                didEndSelector:(SEL)didEndSelector:
                contextInfo:(void *)contextInfo:

解説

印刷レイアウト設定シートウインドウを表示します。

返り値

( void )

なし

引数

( NSPrintInfo * )printInfo

印刷情報

( NSWindow * )docWindow

親ウインドウ

( id )delegate

デリゲート

( SEL )didEndSelector

終了時に実行するメソッド

( void * )contextInfo

追加情報

フレームワーク

ApplicationKit

クラス

NSPageLayout

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{

NSPageLayout *pageLayout = [NSPageLayout pageLayout];
[pageLayout beginSheetWithPrintInfo:[NSPrintInfo sharedPrintInfo] 
            modalForWindow:[sender window] 
            delegate:self 
            didEndSelector:@selector(didEndPageLayout) 
            contextInfo:nil ];
}
-(void)didEndPageLayout
{
NSLog(@"close");
}

@end