Re: setMenuBarVisible: with animation
Re: setMenuBarVisible: with animation
- Subject: Re: setMenuBarVisible: with animation
- From: Keith Blount <email@hidden>
- Date: Sun, 11 Jun 2006 10:58:44 -0700 (PDT)
Thank you - that is *exactly* what I needed. I had
actually come across the tech-note on those functions,
too, but it hadn't occurred to me that they would have
the behaviour I wanted built in - d'oh.
Thanks again, much appreciated,
Keith
--- Ryan Britton <email@hidden> wrote:
> Full Screen:
> SetSystemUIMode(kUIModeAllHidden,
> kUIOptionAutoShowMenuBar);
>
> Normal:
> SetSystemUIMode(kUIModeNormal, 0);
>
>
> This will do the dock as well, but generally that is
> desired behavior
> in full screen.
>
>
> On Jun 11, 2006, at 3:31 AM, Keith Blount wrote:
>
> > Hello,
> >
> > I have a full screen window that hides the menu
> bar
> > using -setMenuBarVisible:. However, what I would
> like
> > to do is have it so that if the user puts their
> cursor
> > at the top of the screen, the menu bar slides down
> > (much as it does in iPhoto's full screen mode). I
> > guess the best way of doing most of this is to use
> a
> > tracking rect at the top of the window, and when
> the
> > mouse enters that tracking rect, show the menu
> bar.
> > However, -setMenuBarVisible: merely toggles the
> menu
> > bar on or off; I want to animate it so that the
> menu
> > bar slides down into view, and then slides back up
> > again.
> >
> > Does anybody have any idea how to do this? I
> suppose
> > one way would be to somehow capture an image of
> the
> > menu bar and fake it, sliding in and out the image
> and
> > then replacing it with the actual menu bar, but I
> > wondered if there were any better solutions? Does
> > anybody know how iPhoto does it (or Jer's Novel
> Writer
> > at http://www.jerssoftwarehut.com or WriteRoom at
> > http://www.hogbaysoftware.com for that matter...)?
> >
> > Many thanks in advance,
> > Keith
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Do not post admin requests to the list. They will
> be ignored.
> > Cocoa-dev mailing list
> (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
>
> >
> > This email sent to email@hidden
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden