Re: NSToolbar problem in 10.6
Re: NSToolbar problem in 10.6
- Subject: Re: NSToolbar problem in 10.6
- From: Peter Ammon <email@hidden>
- Date: Fri, 4 Dec 2009 17:50:08 -0800
On Dec 4, 2009, at 2:13 PM, John Mikros wrote:
> Hello all,
>
> I have a window with an NSToolbar attached. The toolbar is created with defaultItemIdentifiers being an empty NSArray, and then we add items via insertItemWithItemIdentifier:atIndex:
>
> All the item identifiers that are added to the toolbar are in the array returned by toolbarAllowedItemIdentifiers:
>
> However, the first toolbar item that I add does not show up in the toolbar. The rest show up fine. If you click the toolbar widget in the upper right of the window to hide and then show the toolbar, then the missing item magically appears in the toolbar.
>
> This does not happen in 10.5.8. Is there a way to force the toolbar to refresh, as if the user hid and re-showed the toolbar?
Hi John,
I wasn't able to reproduce this problem in a test app. Can you please provide a sample that reproduces it? I can then suggest a workaround.
You might try using setDisplayMode: to alternate between display modes, as a way of refreshing it.
-Peter
_______________________________________________
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