• 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: Getting mouse clicks when the main loop is busy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting mouse clicks when the main loop is busy


  • Subject: Re: Getting mouse clicks when the main loop is busy
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 10 Nov 2013 13:14:15 -0800

> On Nov 10, 2013, at 1:06 PM, Charles Srstka <email@hidden> wrote:
>
> What I usually do is just have NSDocument's readFromData/URL/fileWrapper/etc method not actually do much, and then in windowControllerDidLoadNib: put up a progress bar, and start the loading in a background thread. You can either do this by hiding the main window and displaying the progress bar in a separate window, or by showing the empty document window and putting up a sheet with the progress bar in it while the document window is populated with data.

This sounds like a violation of file coordination and NSDocument file-activity rules. You really ought to load your document contents in the initializer.

--Kyle Sluder
_______________________________________________

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: Getting mouse clicks when the main loop is busy
      • From: Seth Willits <email@hidden>
    • Re: Getting mouse clicks when the main loop is busy
      • From: Charles Srstka <email@hidden>
References: 
 >Getting mouse clicks when the main loop is busy (From: Graham Cox <email@hidden>)
 >Re: Getting mouse clicks when the main loop is busy (From: Fritz Anderson <email@hidden>)
 >Re: Getting mouse clicks when the main loop is busy (From: Graham Cox <email@hidden>)
 >Re: Getting mouse clicks when the main loop is busy (From: Kyle Sluder <email@hidden>)
 >Re: Getting mouse clicks when the main loop is busy (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Getting mouse clicks when the main loop is busy
  • Next by Date: Re: Autolayout error with NSSplitView When Divider Programmatically Moved
  • Previous by thread: Re: Getting mouse clicks when the main loop is busy
  • Next by thread: Re: Getting mouse clicks when the main loop is busy
  • Index(es):
    • Date
    • Thread