RE: System Preferences behaviour for NSToolbar
RE: System Preferences behaviour for NSToolbar
- Subject: RE: System Preferences behaviour for NSToolbar
- From: email@hidden
- Date: Fri, 28 Nov 2003 10:08:26 -0000
Hi,
See setSelectedItemIdentifier: in NSToolbar help, introduced in Panther
Alun Carp
Driver Development Team Leader
Data Encryption Systems Limited
-----Original Message-----
From: Jens Bdckman [
mailto:email@hidden]
Sent: 28 November 2003 09:52
To: email@hidden
Subject: Re: System Preferences behaviour for NSToolbar
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.
_______________________________________________
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.