name
プリンターの名前を返します
解説
プリンターの名前を返します。
返り値
( NSString * )
プリンタ名
引数
フレームワーク
ApplicationKit
クラス
NSPrinter
Instance Methods
使用可能
10.0
参照
+ printerNames
+ printerWithName:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSLog([[NSPrintInfo defaultPrinter] name]); } @end