• 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: Need advice on a custom run-loop mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need advice on a custom run-loop mode


  • Subject: Re: Need advice on a custom run-loop mode
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 20 May 2016 23:15:52 -0700
  • Feedback-id: 167118m:167118agrif8a:167118sBsJSiVLHO:SMTPCORP

On May 20, 2016, at 22:48 , Roland King <email@hidden> wrote:
>
> I wondered about this when you first posted about using a custom runloop mode.

I always think runloops are like Fred Flintstone’s feet when he drives his car. There’s something undefinably wrong with the concept, but (I’m led to believe) that’s where running comes from.

The problem, it seems to me, is that Graham is trying to *block* the main event loop (except for … what?), and that’s bound to be a bad idea. I think if I was trying to do something like this, I’d look into putting a modal sheet over the window where the replay is happening, which will automatically disable most user actions. (If there are multiple windows affected, it’s fine to put a sheet over each of them. I’ve used this technique to display a progress bar on all windows of a multi-window document. It has the advantage of leaving the uninvolved windows fully functional.)

The sheet doesn’t have to be big. It could be more like a badge, and there is API to position it in a non-standard place, if obscuring the activity in the window would be a problem.

I guess it all comes down to what (other than menu items, if anything) Graham really wants to lock out. Network activity? Performed selectors?


_______________________________________________

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: 
 >Need advice on a custom run-loop mode (From: Graham Cox <email@hidden>)
 >Re: Need advice on a custom run-loop mode (From: Jens Alfke <email@hidden>)
 >Re: Need advice on a custom run-loop mode (From: Graham Cox <email@hidden>)
 >Re: Need advice on a custom run-loop mode (From: Graham Cox <email@hidden>)
 >Re: Need advice on a custom run-loop mode (From: Roland King <email@hidden>)

  • Prev by Date: Re: Need advice on a custom run-loop mode
  • Next by Date: Re: Need advice on a custom run-loop mode
  • Previous by thread: Re: Need advice on a custom run-loop mode
  • Next by thread: Re: Need advice on a custom run-loop mode
  • Index(es):
    • Date
    • Thread