NSToolbar removeItemAtIndex
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