• 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: Lorenzo <email@hidden>
  • Date: Thu, 26 Jan 2006 02:39:24 +0100

Hi thanks, fixed.
Now the problem is that when I customize the toolBar, as user, the next time
I want to customize again, I find an empty default toobar in the customize
panel.
In other words, if I add an icon to the toolBar, apply, that icon disappears
from the default toolBar the next time I open the customization panel. I
have to Quit to re-have the full default toolBar in the customization panel.
What am I missing?

Best Regards
--
Lorenzo
email: email@hidden
>
> From: Brian Ganninger <email@hidden>
> Date: Wed, 25 Jan 2006 19:06:17 -0600
> To: Lorenzo <email@hidden>
> Cc: email@hidden
> Subject: Re: ToolBar Icons not sorted
>

> 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:
>>
>> 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: Prachi Gauriar <email@hidden>
References: 
 >Re: ToolBar Icons not sorted (From: Brian Ganninger <email@hidden>)

  • Prev by Date: Re: ToolBar Icons not sorted
  • Next by Date: Re: NSUserDefaults & thread safety
  • Previous by thread: Re: ToolBar Icons not sorted
  • Next by thread: Re: ToolBar Icons not sorted
  • Index(es):
    • Date
    • Thread