setMenuBarVisible: with animation
setMenuBarVisible: with animation
- Subject: setMenuBarVisible: with animation
- From: Keith Blount <email@hidden>
- Date: Sun, 11 Jun 2006 03:31:54 -0700 (PDT)
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