PDA

View Full Version : Tall MenuBar/ToolBar in Cocoa Apps?




digitalbanana
Jun 18, 2007, 01:47 PM
Hi,

New to Mac programming (and Macs in general!). How can I make a tall toolbar such as the one used in iTunes, Aquisition, iPhoto etc?

Is this done in the Interface Builder or coded? Cannot find a name or reference to it on the net at the moment.

See photo for the bit I mean.

Thanks,
db



Eraserhead
Jun 18, 2007, 01:49 PM
You cant do it in IB (yet, apparently you can with Xcode 3), you use NSToolbar search the documentation for more, it looks fairly straightforward (though I haven't used it myself yet).

Krevnik
Jun 19, 2007, 05:27 PM
You cant do it in IB (yet, apparently you can with Xcode 3), you use NSToolbar search the documentation for more, it looks fairly straightforward (though I haven't used it myself yet).

Yes, and no (depending on what the question was really asking, I am not sure). :P

You need to write the toolbar in code with XCode 2... There are plenty of samples floating around and with the tools.

You just set a checkbox in IB's inspector window (it is an attribute of the window) to get the 'unified' toolbar + titlebar look, even with XCode 2.