• 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
Re: adding a page curl transition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding a page curl transition


  • Subject: Re: adding a page curl transition
  • From: Graham Cox <email@hidden>
  • Date: Mon, 14 Sep 2009 13:57:32 +1000


On 14/09/2009, at 1:31 PM, Matt Neuburg wrote:

My question is simply this: what's the best strategy for implementing this?
Unlike the Reducer tab view example, I don't have a view in advance
representing the future state of the window (i.e. what it will look like
after the transition). I'm not substituting one view for another, I'm
altering the content of a whole bunch of fields at once and I want the
*whole* window to peel back to reveal the new values.


I'm thinking this is probably such a common thing to want to do that someone
has already been down this road. Thx - m.

I've implemented this in a simple slideshow app that you can download the source for. I just use Core Image - no point trying to roll your own when the OS has a solution built right in - you need to have two images in memory, the current one and the next one to show, and just fill in the CI parameters, driving the time parameter from 0..1


This code dates from my first efforts with Cocoa so it might not be as clean as it could be, and the Core Image stuff was grafted on when it was first released. In other words, it might not be the best possible code quality for a tutorial, but it works OK.

http://apptree.net/pictureshow.htm

(That's the app - I thought the source was there too but it isn't - contact me off list if it hasn't gone up soon and you want it)


--Graham _______________________________________________

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


References: 
 >adding a page curl transition (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Mac Mini or iMac for Cocoa Development?
  • Next by Date: Re: Mac Mini or iMac for Cocoa Development?
  • Previous by thread: adding a page curl transition
  • Next by thread: Re: adding a page curl transition
  • Index(es):
    • Date
    • Thread