How is the "-NSPrint" command line option supposed to be used?
How is the "-NSPrint" command line option supposed to be used?
- Subject: How is the "-NSPrint" command line option supposed to be used?
- From: Daryle Walker <email@hidden>
- Date: Sun, 24 Aug 2014 18:16:07 -0400
I read “Sent when the user starts up the application on the command line with the -NSPrint option.” as part of the documentation for NSApplicationDelegate’s -application:printFile: method. I tried that when testing my printing; I added “-NSPrint” as one of my command line fragments in the Scheme settings. The results weren’t pretty.
I was about to give up non-menu printing, when I remembered I implemented by -openDocument: method in my NSDocumentController subclass by sending an open-doc Apple Event. Just changing one constant was all I need to switch to print and test my code. But I’m still wondering how to use the command line “-NSPrint” option. Either it’s broken or (more likely) I was using it wrong.
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden