• 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
NSToolbar removeItemAtIndex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSToolbar removeItemAtIndex


  • Subject: NSToolbar removeItemAtIndex
  • From: email@hidden
  • Date: Thu, 2 Dec 2010 19:47:37 -0700

In the app delegate applicationDidFinishLaunching I call

[m_toolbar removeItemAtIndex:15];
[m_toolbar removeItemAtIndex:17];

The items remain displayed.  The documentation says:

While under most circumstances the user will add and remove items from a toolbar using the customization sheet or the context menu, it is possible to insert and remove items programmatically.

The method insertItemWithItemIdentifier:atIndex: inserts the item specified by the item identifier at the specified index.

The method removeItemAtIndex: removes the toolbar item at the specified index.



Do I need to do something further that is not specified in the documentation?



-koko


_______________________________________________

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


  • Follow-Ups:
    • Re: NSToolbar removeItemAtIndex
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 7, Issue 1076
  • Next by Date: Re: Showing a NSPanel
  • Previous by thread: Re: Cocoa-dev Digest, Vol 7, Issue 1076
  • Next by thread: Re: NSToolbar removeItemAtIndex
  • Index(es):
    • Date
    • Thread