NSStatusItem Popover doesn't work in Full Screen mode
NSStatusItem Popover doesn't work in Full Screen mode
- Subject: NSStatusItem Popover doesn't work in Full Screen mode
- From: Alex Kac <email@hidden>
- Date: Fri, 13 Mar 2015 18:11:47 -0600
If I have a NSStatusItem which brings up a popover when tapped, it works normally and it works in Full Screen mode if our app is the one being shown. But if you are in full screen mode with another app, it doesn’t show up.
I’d like to get some ideas on what to do here.
-(void) statusItemSelected:(NSButton*)sender
{
if (informantStatusPopover.isShown)
{
[informantStatusPopover close];
informantStatusPopover = nil;
}
else
{
PIMenuItemTodayViewController* focusViewSidebar = [[PIMenuItemTodayViewController alloc] initWithNibName:@"PIMenuItemTodayViewController" bundle: [NSBundle mainBundle]];
informantStatusPopover = [[NSPopover alloc] init];
informantStatusPopover.contentViewController = focusViewSidebar;
informantStatusPopover.contentSize = NSMakeSize(320, 480);
informantStatusPopover.behavior = NSPopoverBehaviorTransient;
informantStatusPopover.delegate = self;
[informantStatusPopover showRelativeToRect:[sender frame] ofView:sender preferredEdge:NSMinYEdge];
}
}
Alex Kac - President and Founder
Web Information Solutions, Inc.
"Forgiveness is not an occasional act: it is a permanent attitude."
-- Dr. Martin Luther King
_______________________________________________
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