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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to