Re: Accessing NSToolBarItems
Re: Accessing NSToolBarItems
- Subject: Re: Accessing NSToolBarItems
- From: Paul Ferguson <email@hidden>
- Date: Fri, 14 Dec 2001 00:00:00 -0800
On Thursday, December 13, 2001, at 09:49 PM, Matt Judy wrote:
Once I have added an NSToolbarItem to an NSToolbar, how can I message
it (to change its label, etc)?
Keep your own reference to the item as an instance variable in your
toolbar controller, setting the variable in the toolbarWillAddItem:
method. I believe the SimpleToolbar example shows this technique.