ToolBar Icons not sorted
ToolBar Icons not sorted
- Subject: ToolBar Icons not sorted
- From: Lorenzo <email@hidden>
- Date: Thu, 26 Jan 2006 00:23:15 +0100
Hi,
I programmatically create a toolbar and add the icons/button.
Even if I add the icons with my own order, at the end the toolbar disposes
the icons in a different order. How can I fix this?
itemView = [toolBarItemViews objectAtIndex:i];
name = [itemView title];
[itemView setToolTip:name];
item = [[NSToolbarItem alloc] initWithItemIdentifier:name];
[item setPaletteLabel:name];
[item setLabel:name];
[item setView:itemView];
[item setMinSize:[itemView bounds].size];
[item setMaxSize:[itemView bounds].size];
[toolbarItemsCons setObject:item forKey:name];
[item release];
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden