• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How is the "-NSPrint" command line option supposed to be used?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?
  • Next by Date: Re: iOS database within sandbox
  • Previous by thread: Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?
  • Next by thread: Crash from NSURLConnection if delegate released too soon?
  • Index(es):
    • Date
    • Thread