• 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: Keeping a Window on Top
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping a Window on Top


  • Subject: Re: Keeping a Window on Top
  • From: Ben Robinson <email@hidden>
  • Date: Thu, 20 Dec 2007 15:20:26 +0000

I have looked around and am still struggling to get this to work
properly - I would like my app window, which is an NSPanel (although
could be something else) to stay on top of all windows of all
applications - in the same way as the Force Quit window does.  I have
tried using setLevel with various options, but nothing seems to work,
as soon as another app is clicked, it sits on top of my window!?

You might want to take a closer look at the NSWindow API reference. Particularly, -setLevel: (see the constants for the appropriate setting).

--
I.S.


Thanks for that - I had tried setLevel and it didn't work, but as you suggested it again I tried using setLevel in the applicationDidResignActive method instead of activateIgnoringOtherApps - and that solved the problem - works exactly as I want!!
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Keeping a Window on Top (From: Ben Robinson <email@hidden>)
 >Re: Keeping a Window on Top (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Keeping a Window on Top
  • Next by Date: Re: Passing arguments through a binding
  • Previous by thread: Re: Keeping a Window on Top
  • Next by thread: Re: Keeping a Window on Top
  • Index(es):
    • Date
    • Thread