• 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
Re: Menubar in fullscreen oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menubar in fullscreen oddity


  • Subject: Re: Menubar in fullscreen oddity
  • From: Gavin Baker <email@hidden>
  • Date: Fri, 7 May 2010 10:43:48 +1000

I have found a workaround to this problem:

Calling setMenuVisible:NO in an IBAction handler that goes into its own
fullscreen run loop does not work.  The menubar does not go away, and the
fullscreen display doesn't update.

If I add a call to give the main run loop a chance to process events right
after hiding the menu bar, it works:

    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate
dateWithTimeIntervalSinceNow:0.5f]];

This seems somewhat of a kludge. And it seems the method that disables the
main menu is not atomic.

Is there a better way to ensure the menu bar is hidden before entering
fullscreen?

Thanks,

  :: Gavin

On Tue, May 4, 2010 at 1:11 PM, Gavin Baker <email@hidden> wrote:

>
> So, the obvious solution is to simply hide the menubar before entering
> fullscreen, and re-enable it when leaving fullscreen mode.  However, this
> doesn't quite work.
>
> In the IBAction method to switch to fullscreen, if I call:
>
>     [NSMenu setMenuVisible:NO];
>
> then this change does not come into effect when going into the fullscreen
> run loop, and the same problem occurs.
>
>
--
 :: Gavin
_______________________________________________

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

References: 
 >Menubar in fullscreen oddity (From: Gavin Baker <email@hidden>)

  • Prev by Date: QTMovieView binding
  • Next by Date: Re: Core Data and reading a data file
  • Previous by thread: Menubar in fullscreen oddity
  • Next by thread: converting resources, icons, and dialogs to interface builder
  • Index(es):
    • Date
    • Thread