Re: Custom window w/close
Re: Custom window w/close
- Subject: Re: Custom window w/close
- From: Allan Odgaard <email@hidden>
- Date: Fri, 5 Mar 2004 00:55:02 +0100
On 5. Mar 2004, at 0:04, Dave Hersey wrote:
Question #1:
------------
Should I be delegating mouseMoved whenever the window is open, or is
there a
more system-friendly way to do the highlighting? I'm not even sure if a
window's mouseMoved delegate gets called when the app is not
front-most...?
The window does (AFAIK) not receive mouseMoved messages when the
application is inactive. If you don't mind hacking a bit, I'd look into
the newly addition in Panther of allowing tooltips for inactive
applications, perhaps there is a way you can hook into that system and
use it to highlight your close gadget instead.
Question #2:
------------
How do I get the click that activated me and make it go to my window's
close
handler? Right now, the app just comes forward. I see the
NSApplicationDidBecomeActiveNotification, but that doesn't include
information about how the app became active.
NSView has an acceptsFirstMouse: which returns NO. Overload this method
to return YES and/or close the window.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.