Ask Me When I’m Not Busy
Paul Kim has come up with an elegant solution to the problem of your Mac popping up an dialog while you are busy doing something else and having the new alert steal your focus.
This was created for Sparkle+ but Paul has released it as a category you can use in your own apps:
“It’s a little NSObject category with two new methods:
performSelector:withObject:afterSystemIdleTime:and
performSelector:withObject:afterSystemIdleTime:withinTimeLimit:
The first will call the given method on the receiver when the user has been idle for the given period of time. The second method does the same but allows you to set a limit after which it will call the method regardless of idle time, thus preventing the method from being delayed indefinitely.”
More thoughts on stealing focus.

No Comments Yet