• 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
What's wrong with ToolbarItem setLabel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What's wrong with ToolbarItem setLabel?


  • Subject: What's wrong with ToolbarItem setLabel?
  • From: Manish Pattath <email@hidden>
  • Date: Wed, 11 Feb 2004 13:04:29 +0000 (GMT)

Hi All,
I have a problem at hand. A customView with one
NSPopUpButton is the first element in the toolbar. In
Mac OSX 10.2- the Popup button and the text[using
setlabel] appear correctly, but in panther, the label
is never enabled.

I use the following code to add this element to the
toolbar - m_MailboxView here is the outlet to the
PopUpButton

[toolbarItem setLabel:[[m_UIBundle
objectForInfoDictionaryKey:@"IDS_LOCATION"]
description]];
[toolbarItem setToolTip:[[m_UIBundle
objectForInfoDictionaryKey:@"IDS_TBAR_LOCATION_TTIP"]
description]];
[toolbarItem setTarget:self];
[toolbarItem
performSelector:@selector(setView:)
withObject:m_MailboxView];
if ([toolbarItem view]!=NULL)
{
[toolbarItem setMinSize:[[toolbarItem
view] bounds].size];
[toolbarItem setMaxSize:[[toolbarItem
view] bounds].size];
}
[toolbarItem
setAction:@selector(onToolbarSelectMailbox:)];

All other toolbar items appear correctly,even in
Panther.I have problem only with the label under the
PopupButton which is always disabled.
can anyone tell me what is wrong?

________________________________________________________________________
Yahoo! India Education Special: Study in the UK now.
Go to http://in.specials.yahoo.com/index1.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: What's wrong with ToolbarItem setLabel?
      • From: Ryan Bates <email@hidden>
  • Prev by Date: Re: HTML-encoded characters mucking up my NSStrings
  • Next by Date: Flash animation
  • Previous by thread: Redrawing NSTableHeaderCells when on window activation or deactivation
  • Next by thread: Re: What's wrong with ToolbarItem setLabel?
  • Index(es):
    • Date
    • Thread