• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom window w/close
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: compression...
  • Next by Date: Re: Iterating NSSet (was Re: My new framwork)
  • Previous by thread: Custom window w/close
  • Next by thread: Re: Custom window w/close
  • Index(es):
    • Date
    • Thread