Re: Transparent NSWindow And mouseDown Events

Kyle Sluder <[email protected]> Thu, 1 Jul 2010 16:57:05 -0700
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Thu, Jul 1, 2010 at 4:08 PM, NickMtl <[email protected]> wrote:
> Is there a way to get a -mouseDown event *and* a change of focus at
> the same time?

Have you overridden -acceptsFirstMouse: to return YES?
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/acceptsFirstMouse:

--Kyle Sluder