PDA

View Full Version : UI in Interface Builder




sebastijan
Aug 7, 2006, 12:00 AM
How can i make UI (toolbar) like this with Interface Builder?

http://www3.shrani.si/files/picture1785173.png



kainjow
Aug 7, 2006, 12:02 AM
Check out GenericToolbar (http://www.belkadan.com/generictoolbar/). It's a palette for IB that lets you create toolbars without any code.

However, those buttons in Mail are custom, not part of Cocoa (thankfully :p).

sebastijan
Aug 7, 2006, 12:16 AM
tnx. but why is this not default or part of IB?

caveman_uk
Aug 7, 2006, 02:53 AM
Toolbars are done entirely in code. There's no built-in support for them in IB (apart from third-party add ons such as kainjow described). They're pretty simple to do though. Check out NSToolbar and NSToolbarItem. The mail toolbar is custom but I'm surprised that you'd want to duplicate it as most people seem to hate the mail toolbar....

ATG
Aug 7, 2006, 05:54 AM
I suggest you create toolbars in code. It's more fun that way and you learn more. I suspect that you will need to anyway if you want to use custom controls on it (though I have never used the pallet described above so can't say for sure).

I'm surprised that you'd want to duplicate it as most people seem to hate the mail toolbar....
I can never understand that. I quite like it :)