Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)



I'm currently writing an application that requires some specific printing behavior. The printers that we print to, from the application, are loaded with specific paper sizes; therefore, in the application when the user selects a printer I want to set the paper size to what is loaded in that specific printer. Additionally, the application will remember the paper sizes for each printer that has been configured and set the paper size accordingly as the user selects different printers.

The standard behavior of the Page Setup dialog is that when a printer is selected from "Format For" It tries to match the paper size for the document to the paper sizes allowed by the newly selected printer. Since the printers generally support the various paper sizes, this requires the user to change the paper size to what is actually loaded in the printer from the paper size configured for the document. As you might expect, the users don't always remember to do this.

My core question: What is the best way to accomplish this desired behavior?

From reading the "Extending Printing Dialogs" documentation, I have successfully replaced the Page Attributes pane with a custom pane. However, I'd prefer use the standard pane and let it handle printer browsing, etc... and somehow intercept when a printer is selected, lookup the paper size for that printer and set the paper size automagically for the user.

In the "Extending Printing Dialogs" documentation there is a paragraph or two that talks about extending the functionality of a standard pane rather than replacing it. And I quote:

"If your printing dialog extension overrides a standard pane, you should extendbut not replacethe interface in the standard pane. Your customers benefit when you retain the appearance, placement, and behavior of the existing controls. "

What is meant by this statement? I initially interpreted that to mean there would be some mechanism to intercept the standard behavior and interject some custom UI and/or behavior. Is this correct? Or does that mean I need to implement a custom pane that mimics the standard pane except for the small modification in behavior I'm trying to provide?

Thanks in advance for your assistance!

Chad
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.