Disappearing window

Discussion in 'Mac Programming' started by Dreamspinner, Mar 19, 2013.

  1. macrumors member

    Joined:
    Dec 17, 2012
    #1
    My OS X app has a main window and a preferences window. Both are modeless.

    If a window from another app is brought over the preferences pane, it disappears. It's not behind the covering window, it's gone.

    Finding the main window and clicking that brings back the preference pane and so does clicking the icon on the dock.
     
  2. macrumors 68000

    Sydde

    Joined:
    Aug 17, 2009
    #2
    Look at the nib settings for the window, there is one that governs this behavior (I think it is or was something like "Hides on Deactivate").
     
  3. thread starter macrumors member

    Joined:
    Dec 17, 2012
    #3
    Thanks. I tried that and it makes the window modal. Works for the main window though.
     
  4. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Is it a window or a panel?
     
  5. thread starter macrumors member

    Joined:
    Dec 17, 2012
    #5
    I suppose it's a panel. Inspector has panel up top, window below that.
     
  6. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    If it's a panel you are seeing the expected, documented, behavior.
     
  7. thread starter macrumors member

    Joined:
    Dec 17, 2012
    #7
    Oh SNAP! OK, Thanks.
     

Share This Page