PDFOperationWithView:insideRect:toData:
ビューと矩形で印刷するプリントオペレーションオブジェクトを返します
+(NSPrintOperation *)PDFOperationWithView:(NSView *)aView:
insideRect:(NSRect)rect:
toData:(NSMutableData *)data:
解説
ビューと矩形でPDFグラフィックスを印刷するプリントオペレーションオブジェクトを返します。
返り値
( NSPrintOperation * )
プリント操作
引数
( NSView * )aView
ビュー
( NSRect )rect
矩形
( NSMutableData * )data
データ
フレームワーク
ApplicationKit
クラス
NSPrintOperation
Class Methods
使用可能
10.0
参照
+ PDFOperationWithView:insideRect:toData:printInfo:
+ PDFOperationWithView:insideRect:toPath:printInfo:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSMutableData *mData = [NSMutableData dataWithCapacity:1]; NSPrintOperation *pOp = [NSPrintOperation PDFOperationWithView:[[sender window] contentView] insideRect:NSMakeRect(0,0,100,100) toData:mData ]; NSLog([mData description]); } @end