How we create multiple instants of a Window

Discussion in 'Mac Programming' started by Monaj, May 29, 2009.

  1. macrumors regular

    Joined:
    May 24, 2009
    #1
    Hi All


    How we create multiple instance of window
    Like when we click on new message in the mac mail, then it open same number of window for new message
    and each window work separately.


    Thanks
    Monaj
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Easiest way is to put your window in a separate nib, setup an NSWindowController for it and alloc/init your window controller for each window, which will create the window for you from the nib.
     

Share This Page