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 protected])

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 [email protected]

Reply via email to