Re: How to Display Simplified Print Panel
Re: How to Display Simplified Print Panel
- Subject: Re: How to Display Simplified Print Panel
- From: email@hidden
- Date: Sun, 19 Mar 2006 20:36:21 -0800
Janakiram wrote:
Hi All,
I am working on displaying the simplified print panel for my
document based application. I am printing my nsview's contents.This
is what i am doing in my print document method called. When the
User Clicks the print menu item from File Menu , the print document
method will gets called on my document. In that i am creating print
operation object and setting its jobhint to
NSPrintPhotoJobStyleHint and calling document's method to display
the print panel as sheet on my window , but it is showing the same
standard print panel , its not showing other ( simplified) print
panel. Am i missing any thing or should i perform some other
operations to display simplified print panel ? . Please let me know
what should be done further to display the simplified print panel.
Thanks in Advance.
There is no way to easily do this in cocoa, I've tried. You can
present your own sheet by subclassing the print panel, but there is
no cancel method on NSPrintPanel (which is just an opaque carbon
window anyways) so if your user wants to cancel from you panel, they
have to continue, and your app has to send a keyboard NSEvent to
cancel the print panel (which is ugly).
What I would recommend is to subclass the view or document method to
present a sheet without calling any print panel or print operations,
gather your settings from the user in the panel, and when the user
chooses to continue and not cancel, take the info the user set in the
custom panel and *then* create a print operation with setting "no
panel" so it doesn't show the standard panel.
Andre
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden