thank you for the answers.
* The fact is that users want to configure only one toolbar. I thought
about using different toolbars but this requires also to configure
different toolbars, doesn't it?
I have two different views in my window. Each view has additional
toolbar items and some toolbar items can be used for both view.
* Using add/removeItem:atIndex: requires also to remember the index of
the toolbar items.
I need only a flag like visible and hidden.
Thanks again,
Ferhat
On Feb 2, 2009, at 11:19 AM, Peter Ammon wrote:
On Jan 31, 2009, at 8:07 AM, Ferhat Ayaz wrote:
Hello,
I have added - (BOOL)validateToolbarItem:(NSToolbarItem
*)toolbarItem to my code, which will control whether a toolbar
item is enabled or not. However, I need a something similar to
control whether a toolbar item is visible or not.
How can I do this?
Thank you,
Ferhat
You should probably just use multiple toolbars, and switch among
them with setToolbar:.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]