• 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
NSStatusItem Popover doesn't work in Full Screen mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Weird crashes on Yosemite
  • Next by Date: Re: Weird crashes on Yosemite
  • Previous by thread: Re: Full-screen mode broken after upgrading to Yosemite
  • Next by thread: Trying to hide a NSProgressIndicator upon finishing of table rendering
  • Index(es):
    • Date
    • Thread