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

Drew017

macrumors 65816
Original poster
May 29, 2011
1,254
11
East coast, USA
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!??
 

szymczyk

macrumors regular
Mar 5, 2006
187
17
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.
 

szymczyk

macrumors regular
Mar 5, 2006
187
17
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.