Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom window w/close



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.


References: 
 >Custom window w/close (From: Dave Hersey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.