How to keep Safari on top

Discussion in 'Mac Programming' started by SidewalkDancer, Jan 26, 2010.

  1. SidewalkDancer macrumors newbie

    Jan 26, 2010
    I'm trying to programatically bring Safari forward and then set the windows level to the PopUp level. [Safari will be displaying our online help, so I want it to stay on top]. I'm using Carbon. I can get a CSWindow to Safari, which I use to get the window's title, but when I call the CGSSetWindowLevel API I get an invalid parameter error (1001). Is it not possible to change another window's level?

    -Sidewalk Dancer
  2. GorillaPaws macrumors 6502a


    Oct 26, 2003
    Richmond, VA
    What if something more important needs the user's attention? Like a system error.
  3. KnightWRX macrumors Pentium


    Jan 28, 2009
    Quebec, Canada
    Why not just make a dialog using a WebView ? You'd have much more control over your apps help interface that way that having Safari pop up.

Share This Page