Re: Continue application processing with mouse down on a menu

2015-09-28 Thread Eric Schlegel
> On Sep 28, 2015, at 1:06 PM, Lee Ann Rucker wrote: > > I would really really like my NSStatusItem to be able to process whatever it > takes to let it think my menu is a key window so I can process key events in > the search field and the rest of the menu Filed a bug, with a sample app to re

Re: Continue application processing with mouse down on a menu

2015-09-28 Thread Lee Ann Rucker
On Sep 26, 2015, at 10:03 AM, Eric Schlegel wrote: > >> On Sep 26, 2015, at 9:51 AM, Jens Alfke wrote: >> >> >>> On Sep 26, 2015, at 7:11 AM, Programmingkid >>> wrote: >>> >>> It has seem like a rule that has been in place forever that an application >>> pauses processing when the mouse

Re: Continue application processing with mouse down on a menu

2015-09-27 Thread Programmingkid
On Sep 27, 2015, at 10:33 AM, Scott Ribe wrote: > On Sep 26, 2015, at 12:19 PM, Programmingkid > wrote: >> >> I just wish there were an easy way for the a task on the main thread to >> continue to work even if the user is looking at a menu. Using multiple >> threads has a lot of problems ass

Re: Continue application processing with mouse down on a menu

2015-09-27 Thread Scott Ribe
On Sep 26, 2015, at 12:00 PM, Programmingkid wrote: > > I did try using a separate thread, but that caused part of the application to > stop responding to events. A background thread will *not* cause your application to stop responding to events. You need to go back and look more closely at w

Re: Continue application processing with mouse down on a menu

2015-09-27 Thread Scott Ribe
On Sep 26, 2015, at 12:19 PM, Programmingkid wrote: > > I just wish there were an easy way for the a task on the main thread to > continue to work even if the user is looking at a menu. Using multiple > threads has a lot of problems associated with it. A simple way to interleave execution of t

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 2:28 PM, Programmingkid wrote: > > What is the right runloop mode to use? Um, scroll back up to Eric Schlegel’s reply from earlier today, where he said what it is. (I don’t have it in my mailbox anymore.) Something like NSEventsAndButtonsAndMenusAndStuffRunloopMode. And

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 3:19 PM, Jens Alfke wrote: > >> On Sep 26, 2015, at 11:19 AM, Programmingkid >> wrote: >> >> I just wish there were an easy way for the a task on the main thread to >> continue to work even if the user is looking at a menu. Using multiple >> threads has a lot of problems

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Scott Ribe
On Sep 26, 2015, at 11:55 AM, Programmingkid wrote: > > I think the reasoning for this is the user interface is expected to be > responsive and if other processes are running, then the interface will be > sluggish. That *WAS* the reasoning, in 1984 ;-) -- Scott Ribe scott_r...@elevated-dev.c

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 11:19 AM, Programmingkid > wrote: > > I just wish there were an easy way for the a task on the main thread to > continue to work even if the user is looking at a menu. Using multiple > threads has a lot of problems associated with it. Well, it kind of goes without sayin

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 2:03 PM, Jens Alfke wrote: > >> On Sep 26, 2015, at 10:51 AM, Programmingkid >> wrote: >> >> When I click on a menu, the application pauses. That seems pretty much like >> a smoking gun that things haven't changed much with the Mac OS. > > “The application pauses” is a p

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 10:55 AM, Programmingkid > wrote: > > I think the reasoning for this is the user interface is expected to be > responsive and if other processes are running, then the interface will be > sluggish. Not at all. All processes are always running — the OS has pre-emptive s

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 10:51 AM, Programmingkid > wrote: > > When I click on a menu, the application pauses. That seems pretty much like a > smoking gun that things haven't changed much with the Mac OS. “The application pauses” is a pretty vague statement. If you’ve got a periodic task on the

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 1:03 PM, Eric Schlegel wrote: > >> On Sep 26, 2015, at 9:51 AM, Jens Alfke wrote: >> >> >>> On Sep 26, 2015, at 7:11 AM, Programmingkid >>> wrote: >>> >>> It has seem like a rule that has been in place forever that an application >>> pauses processing when the mouse is

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 12:07 PM, Alex Zavatone wrote: > > On Sep 26, 2015, at 10:23 AM, Scott Ribe wrote: > >>> It has seem like a rule that has been in place forever that an application >>> pauses processing when the mouse is down on a menu. > > Why? It's not like all the threads are locked in

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 10:03 AM, Eric Schlegel wrote: > > However, there are the usual ways around this: > - an event loop timer (using NSEventTrackingRunLoopMode) I guess that’s why I’ve never noticed that it blocked the main thread — my apps never do anything on the main thread except in resp

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
On Sep 26, 2015, at 12:51 PM, Jens Alfke wrote: > >> On Sep 26, 2015, at 7:11 AM, Programmingkid >> wrote: >> >> It has seem like a rule that has been in place forever that an application >> pauses processing when the mouse is down on a menu. Is there a way to make >> the application contin

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Eric Schlegel
> On Sep 26, 2015, at 9:51 AM, Jens Alfke wrote: > > >> On Sep 26, 2015, at 7:11 AM, Programmingkid >> wrote: >> >> It has seem like a rule that has been in place forever that an application >> pauses processing when the mouse is down on a menu. Is there a way to make >> the application co

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Jens Alfke
> On Sep 26, 2015, at 7:11 AM, Programmingkid wrote: > > It has seem like a rule that has been in place forever that an application > pauses processing when the mouse is down on a menu. Is there a way to make > the application continue processing even with the mouse down? No, that was only tr

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Alex Zavatone
On Sep 26, 2015, at 10:23 AM, Scott Ribe wrote: >> It has seem like a rule that has been in place forever that an application >> pauses processing when the mouse is down on a menu. Why? It's not like all the threads are locked in a repeat loop. ___

Re: Continue application processing with mouse down on a menu

2015-09-26 Thread Scott Ribe
On Sep 26, 2015, at 8:11 AM, Programmingkid wrote: > > It has seem like a rule that has been in place forever that an application > pauses processing when the mouse is down on a menu. System 1 through OS 9, not so much OS X. > Is there a way to make the application continue processing even wit

Continue application processing with mouse down on a menu

2015-09-26 Thread Programmingkid
It has seem like a rule that has been in place forever that an application pauses processing when the mouse is down on a menu. Is there a way to make the application continue processing even with the mouse down? ___ Cocoa-dev mailing list (Cocoa-dev@li