• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ToolBar Icons not sorted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: ToolBar Icons not sorted
      • From: Lorenzo <email@hidden>
References: 
 >ToolBar Icons not sorted (From: Lorenzo <email@hidden>)

  • Prev by Date: Knowing whether a tablet is connected and switching modes
  • Next by Date: Re: ToolBar Icons not sorted
  • Previous by thread: ToolBar Icons not sorted
  • Next by thread: Re: ToolBar Icons not sorted
  • Index(es):
    • Date
    • Thread