Почему-то в консоли я получаю
: kCGErrorIllegalArgument:
CGSUnregisterWindowWithSystemStatusBar:
Неверное окно
: kCGErrorFailure: установить
точка останова @ CGErrorBreakpoint () для
отлавливать ошибки по мере их регистрации.
с (я думаю) этим кодом ...
- (void)applicationDidResignActive:(NSNotification*)aNotification
{
statusItem = [[NSStatusBar systemStatusBar]
statusItemWithLength:NSVariableStatusItemLength];
[statusItem setHighlightMode:YES];
[statusItem setEnabled:YES];
//Set menubar item's tooltip
[statusItem setToolTip:@"Nucleus"];
[statusItem setMenu:theMenu];
//Set the menubar item's title
[statusItem setTitle:[NSString stringWithString:@"N"]];
[statusItem retain];
}
- (void)applicationDidBecomeActive:(NSNotification*)aNotification
{
[[NSStatusBar systemStatusBar] removeStatusItem:statusItem];
}
Я считаю, что это трассировка стека (?):
0x00007fff8667349b <+0000> push% rbp
0x00007fff8667349c <+0001> mov% rsp,% rbp
0x00007fff8667349f <+0004> mov% edi,% eax
0x00007fff866734a1 <+0006> оставитьq
0x00007fff866734a2 <+0007> retq
0x00007fff866734a3 <+0008> nop
Почему? Как я могу это исправить?
Я использую Какао на Mac?