I want my window/panel to always be on top

Discussion in 'Mac Programming' started by BadWolf13, Jun 6, 2010.

  1. BadWolf13 macrumors 6502

    Joined:
    Dec 17, 2009
    #1
    I've encountered some applications in the past that will create a window or panel that's always on top, even if that's not the active application. I don't even know where to start with this. Anyone got any ideas?
     
  2. mrbash macrumors 6502

    Joined:
    Aug 10, 2008
    #2
    Begin your search with "Modal" windows. You should find what you are looking for.
     
  3. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
  4. BadWolf13 thread starter macrumors 6502

    Joined:
    Dec 17, 2009
    #4
    MrBash, thanks for the idea, modal does do what I'm looking for, but it seems to only be an option for panels, and I don't want the esc key to close this window. Is there a way to do this with an NSWindow?
     
  5. ritsard macrumors regular

    ritsard

    Joined:
    Jun 18, 2009
    Location:
    SF Bay Area, CA
  6. mrbash macrumors 6502

    Joined:
    Aug 10, 2008
    #6
    ristard is correct. My apologies. You want to use setLevel along with makeKeyAndOrderFront.
     

Share This Page