• 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: why does print block in Lion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does print block in Lion?


  • Subject: Re: why does print block in Lion?
  • From: Michael Babin <email@hidden>
  • Date: Sat, 17 Sep 2011 10:16:01 -0500

On Sep 17, 2011, at 8:02 AM, Gerriet M. Denkmann wrote:

>
> See comments below:
>
>>
>> In my TestDocument (subclass of NSDocument) I added the following code (see comments inside, which explain what's happening when I do File â∫‚ Print...):
>>
>>
>> - (NSPrintOperation *)printOperationWithSettings:(NSDictionary *)printSettings error:(NSError **)outError
>> {
>

> When I remove the call above (runModalPrintOperation...) then it prints ok.
> The documentation says: "Overrides of printShowingPrintPanel: can invoke this method."
>
> Is this a documentation error, and it should be: "Overrides of printShowingPrintPanel: prior to Lion can invoke this method. In Lion it should NOT be used." ?
>
> Or am I just confused?

Perhaps I am pointing out the obvious, but you aren't overriding printShowingPrintPanel:, you are overriding printOperationWithSettings:error:. The documentation may be literally correct as is.

I'm not all that familiar with the ins and outs of this particular subset of NSDocument's methods, but is there a reason you wouldn't just return the NSPrintOperation you created from this method and let the caller (presumably printDocumentWithSettings: showPrintPanel: delegate: didPrintSelector: contextInfo:) handle the rest?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: why does print block in Lion?
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Re: why does print block in Lion? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: sheet not receiving all events?
  • Next by Date: Re: sheet not receiving all events?
  • Previous by thread: Re: why does print block in Lion?
  • Next by thread: Re: why does print block in Lion?
  • Index(es):
    • Date
    • Thread