• 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: waitUntilDone: parameter when performing selector on main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: waitUntilDone: parameter when performing selector on main thread


  • Subject: Re: waitUntilDone: parameter when performing selector on main thread
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 14 Nov 2013 12:15:10 -0800

On 2013 Nov 14, at 08:01, Graham Cox <email@hidden> wrote:

> Grrr.

OK, a couple really wild ideas.  I don’t know whether or not you’re working with NS Persistent Document, Core Data.

You know that when NSPersistentDocument reverts, it closes and releases all document windows and creates new ones.  But plain NSDocument does not.

So you could try overriding document revert.  If your document is *not* Core Data, invoke super on a secondary thread.  If your document *is* Core Data, don’t invoke super.  Instead, close the document and re-open the prior one.  The user experience will be no more ugly than in any other Core Data app.

Now, you’re probably thinking that either of these ideas will either crash immediately, or cause huge headaches and latent bugs.  I agree.  But since you’re already into the muck of customizing NSDocument, maybe you’re game for it, or maybe you’ll learn something useful.


_______________________________________________

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: 
 >waitUntilDone: parameter when performing selector on main thread (From: Graham Cox <email@hidden>)
 >Re: waitUntilDone: parameter when performing selector on main thread (From: Quincey Morris <email@hidden>)
 >Re: waitUntilDone: parameter when performing selector on main thread (From: Graham Cox <email@hidden>)
 >Re: waitUntilDone: parameter when performing selector on main thread (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Outpust stream/Native socket question:
  • Next by Date: Re: NSArrayController + NSTableView addObject ends editing
  • Previous by thread: Re: waitUntilDone: parameter when performing selector on main thread
  • Next by thread: NSTextView - stopping conversion of quotation marks
  • Index(es):
    • Date
    • Thread