printerWithType:
与えられたプリンタタイプでNSPrinterを返します
+(NSPrinter *)printerWithType:(NSString *)type:
解説
与えられたプリンタタイプでNSPrinterを返します。
返り値
( NSPrinter * )
プリンタ
引数
( NSString * )type
プリンタタイプ
フレームワーク
ApplicationKit
クラス
NSPrinter
Class Methods
使用可能
10.0
参照
+ printerWithName:
+ printerTypes
- type
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSPrinter *prn = [NSPrinter printerWithType:@"Xrn4525p"]; } @end