PDA

View Full Version : Cocoa/ObjC create additional windows question




Treva03
Sep 17, 2008, 12:52 PM
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:



kainjow
Sep 17, 2008, 01:34 PM
Use NSWindow. You can create them in Interface Builder or in code.

Treva03
Sep 17, 2008, 07:18 PM
Awesome, I will read more into how to use NSWindow. Thanks.