modal NSPanel

Discussion in 'Mac Programming' started by McBgnr, May 12, 2009.

  1. McBgnr macrumors regular

    Joined:
    Apr 13, 2009
    #1
    I have added an NSPanel object to my apps nib file. I am showing NSPanel using orderfront when a button is clicked on my mainwindow.

    How can I make NSPanel modal so that my mainwindow is not available to the user as long as the NSPanel is visible.

    Please suggest.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Read the documentation.

    And learn how to use Google. This was the very first search result for "Cocoa Modal".
     
  3. McBgnr thread starter macrumors regular

    Joined:
    Apr 13, 2009
    #5
    Sorry for bugging you guys. Thanks a lot for the link to the documentation.
     

Share This Page