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

Re: [SOLVED] Re: printDocument: hangs on Lion?


  • Subject: Re: [SOLVED] Re: printDocument: hangs on Lion?
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 23 Aug 2011 11:31:07 -0700

On 2011 Aug 22, at 20:24, Graham Cox wrote:

> there seems to still be a compatibility code path that supports this within NSDocument, but that compatibility code path is not in itself compatible with the new document saving malarkey. So, it's Apple's bug, but perhaps not one they would care about at this stage.

Ah, I had the same now-familiar -[NSDocument performActivityWithSynchronousWaiting:usingBlock:] deadlock a few weeks ago, because I had not implemented saveToURL:::completionHandler:.  And then it happened again; solved that problem by adopting asynchronous saving.

My advice to anyone retrofitting Autosave in Place into an older app is to do more.  If you're overriding the older synchronous methods, write overrides for the new block-based methods too.  Adopt asynchronous saving too.  Although these new features appear to be à la carte, I'm sure Apple has done much more testing using them all together.

_______________________________________________

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

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>)
 >Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Jerry Krinock <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)
 >[SOLVED] Re: printDocument: hangs on Lion? (From: Graham Cox <email@hidden>)

  • Prev by Date: Preventing lion from saving state...
  • Next by Date: Large over 100K pixel high ruler scroll view
  • Previous by thread: Re: [SOLVED] Re: printDocument: hangs on Lion?
  • Next by thread: Re: printDocument: hangs on Lion?
  • Index(es):
    • Date
    • Thread