Sliding a view into place?
Sliding a view into place?
- Subject: Sliding a view into place?
- From: Keith Blount <email@hidden>
- Date: Mon, 18 Sep 2006 12:36:02 -0700 (PDT)
Hello,
Could anyone give me any advice on the best way of
getting a view to "slide" into place? I have a view
that has three "modes", one of which can be toggled
into the other two, so when the user toggles to one of
these I want that view to "slide" over the top to
enforce the idea that it is kind of an "on-top" view
that can be toggled back off. I guess this thing will
be a lot easier when CoreAnimation comes along, but I
want this working in Tiger...
The approach I am thinking of at the moment is this:
1) Draw both views into an NSImage.
2) Switch to a custom view that draws the image of the
first view.
3) Slide the image of the second view image over the
top of the first using an NSTimer.
4) Switch to the second view.
Is this the usual way of doing this, or am I missing
an easier approach?
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