Re: System Preferences behaviour for NSToolbar
Re: System Preferences behaviour for NSToolbar
- Subject: Re: System Preferences behaviour for NSToolbar
- From: Jens Bäckman <email@hidden>
- Date: Fri, 28 Nov 2003 10:51:35 +0100
On 2003-11-28, at 10.38, j o a r wrote:
Hej,
What is it that you need help with? Adding a toolbar is easy, right?
Let's say that you keep an array of views - the preference plugin
views. Just hook up the toolbar items to a method that switch to the
correct view, and then do [myWindow setContentView: someView]. If you
want the animated resize you might have to do a little bit more work,
but that's basically all there is to it.
Anything else?
Switching between views is easy. What I don't understand is how to make
the toolbar item "selected". Let's say that you press the Show All
item. Now, the item will be marked and the view is switched. This
behavior was introduced in Panther, btw.
_______________________________________________
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.