Re: How I was able to select between 3 different toolbars in one window, is there a better way?
Re: How I was able to select between 3 different toolbars in one window, is there a better way?
- Subject: Re: How I was able to select between 3 different toolbars in one window, is there a better way?
- From: James Housley <email@hidden>
- Date: Tue, 8 Feb 2005 15:31:50 -0500
On Feb 8, 2005, at 2:53 PM, Andy Armstrong wrote:
On 8 Feb 2005, at 19:49, James Housley wrote:
I have an App with 3 tabs that select 3 different views to access
different parts. I wanted a unique toolbar for each of the tabs.
The variable "tabsFirsts_index" is used to track which tab is the
active one, this is needed so I can do some stuff on the will change
and did change where I want to know the last table the user was on.
Anyways, I created the 3 different toolbars and saved them out into a
NSDictionary, and then used those dictionaries to switch between
them.
Why use a dictionary when an array would suffice? You're effectively
turning numeric indexes into dictionary keys in your code anyway...
Because AFAIK, configurationDictionary: and
setConfigurationFromDictionary: are the only ways to mass change the
contents of a NSToolbar.
Jim
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
email@hidden http://www.FreeBSD.org The Power to Serve
email@hidden http://www.TheHousleys.net
---------------------------------------------------------------------
Do not meddle in the affairs of dragons, for you are crunchy and taste
good with ketchup.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden