Re: NSStatusItem problem
Re: NSStatusItem problem
- Subject: Re: NSStatusItem problem
- From: Jesus De Meyer <email@hidden>
- Date: Thu, 8 Nov 2007 14:06:27 +0100
You need to create your statusbar like so:
NSStatusBar *statusbar = [NSStatusBar systemStatusBar];
NSStatusItem *menuItem = [statusbar
statusItemWithLength:NSVariableStatusItemLength];
Hi,
I've got a problem in my applications.
I use NSStatusItem with text only.
Basicly something like that:
NSStatusBar *statusbar=[NSStatusBar systemStatusBar];
NSStatusItem* menuItem=[statusbar statusItemWithLength:-1];
if (menuItem)
{
[menuItem retain];
[menuItem setTitle:@"Test"];
[menuItem setHighlightMode:YES];
}
the menu is created and I can click on it.
Works nice in a stand alone Cocoa or Carbon application project.
But in my applications which are made in Realbasic, this menu will
install, but the clickable area in the menu is limited to the actual
text. All the space between the letters can't be clicked.
Has someone seen that before?
Works in 10.4, so this is a 10.5 only issue.
Gruß
Christian Schmitz
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
__________________
Jesus De Meyer
www.edot-studios.com
jesus.edot-studios.com
"creativity in mind"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden