What's wrong with ToolbarItem setLabel?
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.