• 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
Keeping a window active and frontmost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keeping a window active and frontmost


  • Subject: Keeping a window active and frontmost
  • From: "John C. Welch" <email@hidden>
  • Date: Tue, 03 Jan 2012 11:35:42 -0500
  • Thread-topic: Keeping a window active and frontmost

In my application, I have a few utility panels that I want to be not only frontmost, but always active, I.e. cmd-w always goes to them, even if I click in the main application window.

Getting frontmost is easy, it's a utility panel, and I use 

homeTimeOutHud's makeKeyAndOrderFront_(me) --open the window

(The window style atributes are set to utility panel, non activating and document modal are both disabled. )

when I create the window. But, if I click away to the main window, then it starts receiving events, and I don't want that to happen. I poked around NSWindow, and tried a few things, like orderFrontRegardless(), but no love. How does one go about doing this?
 
Thanks,

john

-- 
Socks should match your pants, and your belt should match your shoes. After that, if anyone complains, tell ‘em they should be happy you’re wearing any clothes at all.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Doing stuff with a HUD window
  • Next by Date: Stepper confusion
  • Previous by thread: Re: Doing stuff with a HUD window
  • Next by thread: Stepper confusion
  • Index(es):
    • Date
    • Thread