1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Bringing window to front at launch.

Discussion in 'Mac Programming' started by adcx64, Jun 2, 2011.

  1. macrumors 65816

    adcx64

    #1
    Hi,
    I have a window in my application. I want it to pop up in front of my main app, like a welcome screen. there is nothing in the Inspector that lets me have the window in front. How do I go about doing this?
     
  2. Moderator emeritus

    kainjow

    #2
    Code:
    [window makeKeyAndOrderFront:nil];
     
  3. macrumors 65816

    adcx64

    #3
    thanks

    but where do I implement this code? i do not see my window in the Xcode viewer.
     
  4. macrumors 65816

    jiminaus

    #4
    Try doing it from applicationDidFinishLaunching: in your app delegate.
     
  5. Moderator emeritus

    kainjow

    #5

Share This Page