Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7174507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:04:08+00:00 2026-05-28T16:04:08+00:00

this question has bothered me on and off for about a year, and I

  • 0

this question has bothered me on and off for about a year, and I thought perhaps someone else would have experience with a similar situation.

Goal: on Mac OS X 10.6-7, to print multiple NSViews to EPSON Stylus Pro 4880 printers using a defined resolution and ‘high speed’ setting, without showing a print panel.

Current situation: I can create successful NSPrintOperations for each NSView, but if I do not show a print panel, it appears the printer’s default resolution is used, which is far too high, and slow, for my needs.

Best solution I have so far: I have tried showing the print panel and defining a Mac OS ‘preset’ which has the correct print resolution and high speed settings already enabled. The downside here is that the Mac preset overrides the number of copies I have set via NSCopies, which is a problem. The other difficulty of course is having someone always around to press the ‘OK’ button a few thousand times a day.

Where I’m up to

  • When the NSPrintOperation runs its panel, it has to set the EPSON-specific printer settings somewhere, but I cannot find where it is saved. They don’t appear to be set in [NSPrintInfo printSettings].

  • I have looked at the PPD for the printer, but I can’t find the high speed setting anywhere, and the default resolution defined in the PPD is not actually used as the default when printing. It appears EPSON has their own driver settings which are not taken from the PPD I have, and I am not sure how to set them manually.

  • Basically, running the NSPrintOperation with a print panel and preset overrides all the settings, including the ones I don’t want to override. Running it without the print panel leaves all the settings as default, which is not what I want. Can anyone point me in the right direction to find a solution in between those two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:04:10+00:00Added an answer on May 28, 2026 at 4:04 pm

    This is unfortunately the best solution I have found so far though I hate to call it ‘best’, or even a ‘solution’. It comes back to this: run an operation with a panel, and then programmatically ‘click’ the Print button.

    [op runOperationModalForWindow: self.window delegate: self didRunSelector: nil contextInfo: nil];
    NSPanel *panel = (NSPanel*)self.window.attachedSheet;
    for (NSView *view in ((NSView*)panel.contentView).subviews)
    {
        if (view.class == [NSButton class])
        {
            NSButton *button = (NSButton*)view;
            if ([button.title isEqualToString: @"Print"])
                [button performClick: self];
        }
    }
    

    or

    op.runOperationModalForWindow(window, delegate: nil, didRunSelector: nil, contextInfo: nil)
    (window.attachedSheet?.contentView.subviews.filter({ $0 is NSButton }) as [NSButton]).filter({ $0.title == "Print" }).first?.performClick(self)
    

    The downside obviously is a window is needed, while I was hoping to run this as a headless server application. I have tried working with Core Printing and PMPrinter/PMPrintSettings and so forth to no avail. The only thing I have not yet tried is talking to CUPS directly. Maybe I’ll save that for a rainy day!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is something that has always bothered me about PHP and I have never
I think the answer to this question is so obivous that noone has bothered
This question has been asked before ( link ) but I have slightly different
This question has been asked in a C++ context but I'm curious about Java.
This question has been asked before, but I would like a little more detail
This question has always bothered me. And the NetBeans wiki does not say anything
This question has bothered me for a million years... whenever I create a website
This is most certainly a language agnostic question and one that has bothered me
This question has been bugging me a LOT lately. Any help would be appreciated.
This is an Nhibernate question that has bothered me for some time... If I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.