Uh, if I understand what the op wants to do correctly, overriding -
[NSWindow mouseDown:] isn't going to do it.
If the user clicks inside a view that overrides -mouseDown: (and
friends -rightMouseDown: and -otherMouseDown:), there's no guarantee
that your window's override will get called.
Re: Perform additional action when window receives any
mouse- or keyDown
On Tue, Feb 16, 2010 at 9:48 AM, Jerry Krinock
wrote:
> So I subclassed the window, overrode -sendEvent:, invoke super
> and post a notification for which my window controller
> registers, and in the notificat
On Tue, Feb 16, 2010 at 9:48 AM, Jerry Krinock wrote:
> So I subclassed the window, overrode -sendEvent:, invoke super and post a
> notification for which my window controller registers, and in the
> notification handler I examine the event type. It works, but this seems
> quite heavy-handed t
On 2010 Feb 16, at 10:58, Paul Sanders wrote:
> -[NSWindow mouseDown:]? (inherited from NSResponder).
Thanks, Paul. I hadn't realized that inheritance.
Also, I'd need -rightMouseDown:, -keyDown:, -otherMouseDown:, ???
At least, no notification needed.
-[NSWindow mouseDown:]? (inherited from NSResponder).
Paul Sanders.
- Original Message -
From: "Jerry Krinock"
To: "Cocoa Developers"
Sent: Tuesday, February 16, 2010 5:48 PM
Subject: Perform additional action when window receives any
mouse- or keyDown
A
At times, I attach an attached window to a document window. I would like this
window to go away whenever the user clicks anything in the window, kind of like
a tooltip.
So I subclassed the window, overrode -sendEvent:, invoke super and post a
notification for which my window controller registe