Re: ToolBar Icons not sorted
Re: ToolBar Icons not sorted
- Subject: Re: ToolBar Icons not sorted
- From: Brian Ganninger <email@hidden>
- Date: Wed, 25 Jan 2006 19:06:17 -0600
The (initial) order of toolbar items is set by the order of the items
in the array for - (NSArray *) toolbarDefaultItemIdentifiers:
(NSToolbar *) toolbar and if the user changes the order this is
preserved and restored for the toolbar given an autosave name.
The order as shown in the customize sheet is set by - (NSArray *)
toolbarAllowedItemIdentifiers: (NSToolbar *) toolbar and the array
therein.
How is your expected output differing with regards to the above notes?
On Jan 25, 2006, at 5:23 PM, Lorenzo wrote:
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:
40mac.com
This email sent to 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