KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have an app which uses NSStatusItem . On small screens, there's not much space in the status bar. When a user switches to an application with a lot of menu items, my status item gets hidden. Is there a way to get notified about this? What I tried so far: I checked if any NSNotification is fired: No I checked if the statusView is removed from the view hierarchy: No I checked isHiddenOrHasHiddenAncestor : No Here's the code I use to create the status item. self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength]; MyStatusView *maView = [[[MyStatusView alloc] initWithFrame:CGRectMake(0, 0, 50, 22)] autorelease]; [statusItem setTitle:@"Ma Status Item"]; [statusItem setView:maView];
Tags (comma-separated)
Save Edits
Cancel