• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSToolbar and constrolling visible items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar and constrolling visible items


  • Subject: Re: NSToolbar and constrolling visible items
  • From: Ferhat Ayaz <email@hidden>
  • Date: Mon, 2 Feb 2009 11:31:43 +0100

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@hidden)

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:
This email sent to email@hidden


References: 
 >Re: NSToolbar and constrolling visible items (From: Peter Ammon <email@hidden>)

  • Prev by Date: Re: NSToolbar and constrolling visible items
  • Next by Date: autentification problem
  • Previous by thread: Re: NSToolbar and constrolling visible items
  • Next by thread: autentification problem
  • Index(es):
    • Date
    • Thread