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