• 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: NSStatusItem problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSStatusItem problem (From: email@hidden (Christian Schmitz))

  • Prev by Date: Changing settings in System Preferences using cocoa api
  • Next by Date: Redraw Problem with Layer-Backed View in Scroll View
  • Previous by thread: NSStatusItem problem
  • Next by thread: ImageBrowser and Garbage Collection
  • Index(es):
    • Date
    • Thread