Re: NSToolbar Acting as Tabs
Re: NSToolbar Acting as Tabs
- Subject: Re: NSToolbar Acting as Tabs
- From: Matt Gemmell <email@hidden>
- Date: Thu, 17 Jul 2003 18:11:11 +0100
On 17/7/03 at 5:00 pm, Thomas Deniau said:
>
> I can do toolbars; I can do tabs. The question is how to make a
>
> toolbar so it changes window content LIKE tabs?
>
>
Use an "invisible" tabview (there is a tabless option in IB) and then
>
just call the method to change the selected tab view item when the
>
toolnar button is clicked...
>
>
> The prime example of this would be how System Preferences works.
>
>
If you can afford 600 additional kilobytes in your app, consider
>
using the OmniAppKit. They have something which exactly reproduces
>
the system preferences behavior.
Or if you don't need the display of all icons below the toolbar (i.e.
you just need an NSToolbar whose items change the view in the window, as
with a tabview), then you might also try my SS_PrefsController class,
which is designed to do exactly that.
It's with my other Cocoa source, here:
<
http://www.scotlandsoftware.com/products/source/>
Cheers,
-Matt
--
Matt Gemmell
Irate Scotsman
http://www.scotlandsoftware.com/blog/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.