Re: setMenuBarVisible: with animation
Re: setMenuBarVisible: with animation
- Subject: Re: setMenuBarVisible: with animation
- From: Ryan Britton <email@hidden>
- Date: Sun, 11 Jun 2006 08:16:03 -0700
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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