Skip navigation.
 
mlRe: Accepting Background Clicks
FROM : Matt Neuburg
DATE : Fri Jul 14 17:32:12 2006

On Thu, 13 Jul 2006 23:47:19 -0700, Sanford Selznick
<<email_removed>> said:
>I have an NSDocument based application.  When it's in the background,
>and users click on my window, I'd like the app to respond to the
>mouse-down as if it was clicked in the foreground.
>
>In Safari, a mouse-down on one of its windows while in the background
>will bring the window to the front and highlight the control.  This
>is the behavior I want.
>
>I've tried playing with SetFrontProcess and intercepting mousedown
>events, but it's not working like Safari.
>
>What's the best way to accept front clicks in a background Cocoa app?


I really dislike that behavior in apps, so I'm hoping you don't read the
documentation, where you might find out about acceptsFirstMouse. m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>

Related mailsAuthorDate
mlAccepting Background Clicks Sanford Selznick Jul 14, 08:47
mlRe: Accepting Background Clicks Buddy Kurz Jul 14, 15:58
mlRe: Accepting Background Clicks Matt Neuburg Jul 14, 17:32
mlRe: Accepting Background Clicks Sanford Selznick Jul 14, 20:14