Cocoa/ObjC create additional windows question

Discussion in 'Mac Programming' started by Treva03, Sep 17, 2008.

  1. macrumors newbie

    Joined:
    Sep 17, 2008
    #1
    I am new to the Mac environment (recent switcher) and I love mac. I have some self-taught knowledge of C++(not a lot) and I am trying to self teach C and obj c. My question is how do I create additional windows in Cocoa/Xcode?
    Ultimately I have a program that consists of 4 buttons each with different purposes, of course. I would like each button to open a new window where the user will input data to be converted. One button is a metric converter. And when the user clicks this button I would like a window to open with input fields and selections to convert lets say inches to centimeters, or whatever. Is there a simple way to do this? Thanks in advance. I have searched forums, and all over the net to find something to do just this.

    Thanks for any help in advance,
    Treva:confused:
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Use NSWindow. You can create them in Interface Builder or in code.
     
  3. thread starter macrumors newbie

    Joined:
    Sep 17, 2008
    #3
    Thanks

    Awesome, I will read more into how to use NSWindow. Thanks.
     

Share This Page