Re: Detecting printer changes in NSPageLayout question.
Re: Detecting printer changes in NSPageLayout question.
- Subject: Re: Detecting printer changes in NSPageLayout question.
- From: Rod Dunne <email@hidden>
- Date: Tue, 27 Feb 2007 14:04:33 -0500
Michael Babin wrote:
On Feb 26, 2007, at 10:40 AM, Rod Dunne wrote:
Could someone please explain to me what this response from the bug
report team means? Obviously a Page Setup panel is for changing the
formatting of a specific printer, but how am I supposed to tell what
that printer is.
Is it normal Mac usability for the user to use the Page Setup sheet
to choose their printer, paper size and orientation, and then when
they select Print to have to change the printer again to the one they
just chose, if it doesn't just happen to match?
<http://developer.apple.com/documentation/Printing/Conceptual/About_MacOSX_Printing/abtprt_chap2/chapter_2_section_2.html#//apple_ref/doc/uid/20001017-CH205-TPXREF127>
Particularly:
"It’s important to keep in mind that the formatting printer does not
specify the destination printer—that is, the printer to which the
document is printed. The destination printer is specified in the Print
dialog, which by default is the default printer in Print Center. The
user can change the destination printer in the Print dialog, but
changing the formatting printer in the Page Setup dialog does not
change the destination printer."
Thanks Mike, so my paranoia about usability was misfounded.
Unfortunately, I am still at a loss at how to find out what the
formatting printer is, from the NSPageLayout, though.
Do NSDocument based applications just get that functionality for free
without needing to expose it to the developer? In other words, does the
following scenario work when based on NSDocument?
1) The user invokes the Page Layout and chooses a printer followed by a
paper size, scaling and orientation. The developer does not need to
write any code to remember the formatting.
2) The user later then chooses to print and in the Print panel selects
the printer that they previously set the format for. The developer does
not need to write any code to set the formatting.
3) The NSDocument somehow has the formatting settings stored for that
particular printer and prints using them, as expected by the user.
I am not using an NSDocument though.
I am trying to use this through JNI, so I really need to get the name of
the printer chosen by the user in the NSPageLayout panel.
Does anyone have any suggestions?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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