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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to