• 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
Front and back flip animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Front and back flip animation


  • Subject: Front and back flip animation
  • From: "Geert B. Clemmensen" <email@hidden>
  • Date: Fri, 15 Feb 2008 10:52:25 +0100

I would like to implement a switch between two views, each with their own set of controls etc., so the switch animates like when you click on the small "i" on a widget, i.e. the concept of a front and a back. The animation should flip the views around a vertical axis in the middle of their frame. I've looked at the ViewFlip and GeekGameBoard examples (and many others) and kinda have things working, but it is not quite what I want. I would like to solicit opinions on what the best strategy is. The ViewFlip uses CATransform3DMakeRotation, but that isn't ideal as described in the GeekGameBoard example. The GeekGameBoard uses CALayer and not NSViews, so I'm unsure how to change the example to what I need.

One approach I've considered is to add an animation to the parent view ("subviews" property) so it moves and resizes the view. Let's say that the views are 200x400 and with frameOrigin at 0,0. Would it then make sense to have the front animate from ((0,0),(200,400)) to ((100,0), (0,400)) and the reverse for the back (assuming doubleSided is NO)?

Is there a much better and obvious way, once you've seen the light :o), to achieve the front/back flip animation?

Kind Regards,
Geert B. Clemmensen

_______________________________________________

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


  • Follow-Ups:
    • Re: Front and back flip animation
      • From: Steven Huey <email@hidden>
    • Re: Front and back flip animation
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Mac OSX cocoa equivalent of Windows MessageBox()?
  • Next by Date: Re: KVC and KVO for arrays
  • Previous by thread: Re: Mac OSX cocoa equivalent of Windows MessageBox()?
  • Next by thread: Re: Front and back flip animation
  • Index(es):
    • Date
    • Thread