Issue: 1.4 (February/March 2003)
Author: Colin Cornaby
Author Bio: Colin Cornaby is an OS X developer. Current projects include "Duality," a theme changer for Mac OS X, written in REALbasic.
Article Description: No description available.
Article Length (in bytes): 9,003
Starting Page Number: 43
Article Number: 1423
Related Link(s): None
Excerpt of article text...
Let's get started and write some Cocoa! In the last column you created a project called "SheetProject." If you have not yet done this, go into Project Builder, go to File:New Project, select "Cocoa Application," hit "Next," and name and create your project.
Find the resources folder on the left hand side of the project window and click the expand arrow. Double click on MainMenu.nib to open it in Interface Builder. Right away we are going to want to open the Info palette. Go to Tools: Show Info. The Info palette is much like the Properties Window in REALbasic. It will let you modify various interface elements. Click on "Window" in the Instances tab of the MainMenu.nib window. The Info palette will update and display information on your window. Use it to change the "Window Title" property to "Sheet Demo." If the window for your nib is not already open, you can open it by double clicking it under the instances tab. Your window should now have the title you assigned to it with the Info palette.
Use the palette of various interface elements to create a window like the one shown in Figure 1. You can resize the window by using the resize box just like in REALbasic. As in REALbasic, when dragging elements on the window guidelines will appear to help you lay out the interface. In order to make your button "Default" style, click on it and choose a keyboard equivalent of return on the Info palette (this option is under the "Equiv" drop down menu).
file:///Picture 4.pdf Figure 1:The layout of the window.
...End of Excerpt. Please purchase the magazine to read the full article.