Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Drew017

macrumors 65816
Original poster
Hello- I'd like to know how to add a toolbar to a window in interface builder 2.5. For some reason, there is no NS toolbar in version 2.5, and I'd like to know how to get a toolbar in a window. In the item inspector, there is a unify toolbar option, but no toolbar. Help!??
 
I tried that, but I can't get it to work, or maybe I don't know how... Can someone help!?
 
If kainjow's suggestion didn't work, you'll have to create the toolbar in your code. Apple didn't add toolbar support to Interface Builder until Xcode 3.
 
I have never created a toolbar programmatically, but I guess you would add the code to the awakeFromNib: method or to the window's initialization code. The following article may help you:

NSToolbar Basics
 
I'm new to programming, and I'd like to know where I need to put the code to create a toolbar
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.