//Create the NSStatusBar and set its length
statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength] retain];
[statusItem setHighlightMode:YES];
[statusItem setTitle:@"myTitle"];
[statusItem setToolTip:@"myToolTip"];
[statusItem setMenu:statusMenu];
[statusItem setEnabled:YES];
如何将“myTitle”的颜色更改为蓝色?
当列表被禁用时,像 PeerGuardian 这样的应用程序会将其状态栏项目标题更改为红色,所以我想这是可能的。