• 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: printDocument: hangs on Lion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printDocument: hangs on Lion?


  • Subject: Re: printDocument: hangs on Lion?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 23 Aug 2011 10:29:06 +1000

Hi Kevin,

I'm definitely not calling it anywhere explicitly, but possibly by calling some other method.

My use of -runModalPrintOperation:delegate:didRunSelector:contextInfo: was passing nil for both delegate and the didRunSelector, which I thought might be the problem, but replacing those with a valid target and selector doesn't fix the issue (and without autosaving, the added run selector does run).

What other methods could be a wrapper for -performActivityWithSynchronousWaiting:usingBlock: ?

I should mention that I'm only using blocks very sparingly at the moment - just enough to overcome some deprecation warnings in things like NSOpenPanel; I don't use them extensively. Neither is my app very largely making use of threads, operation queues , GCD etc. It should be a pretty simple case.

--Graham




On 23/08/2011, at 12:32 AM, Kevin Perry wrote:

> Graham,
>
> This can happen if there is a previous call to -performActivityWithSynchronousWaiting:usingBlock: and the block never calls the completion handler. If you use that method anywhere, please make sure the completion handler always gets called. If you don't use the method directly, other methods in NSDocument may call it and failure to invoke their completion handlers properly may also result in these kinds of hangs.
>
> After checking these things, if you believe your code is not at fault, please file a bug ASAP.
>
> -KP

_______________________________________________

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: printDocument: hangs on Lion?
      • From: Jerry Krinock <email@hidden>
References: 
 >printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Kevin Perry <email@hidden>)

  • Prev by Date: Re: Not Receiving Distributed Notifications Unless in Focus
  • Next by Date: Re: printDocument: hangs on Lion?
  • Previous by thread: Re: printDocument: hangs on Lion?
  • Next by thread: Re: printDocument: hangs on Lion?
  • Index(es):
    • Date
    • Thread