• 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
Re: How to Display Simplified Print Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to Display Simplified Print Panel (From: Janakiram <email@hidden>)

  • Prev by Date: Re: NSString propertyList crash
  • Next by Date: Re: NSString propertyList crash
  • Previous by thread: How to Display Simplified Print Panel
  • Next by thread: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
  • Index(es):
    • Date
    • Thread