eBook: Xcode animations - Core Graphics


eBook 1

Play with fire.

Download

Feedback and criticism encouraged and appreciated.

© 2006 Ankur Kothari


Back to Top ↑

21 Comments so far

Leave a comment
  1. 1

    That’s fantastic, thank you, thank you, thank you, thank you.

  2. 2

    wow, sounds awesome. i’m gonna take a look imediatly

  3. 3

    It doesn’t matter what you set it to now since the view
    will resize itself one it’s in the window.

    -> did you mean once?

  4. 4

    Oops. Yeah, must have been a typo. I’ll update it soon.

  5. 5

    This is a very tasty book, but I really think you be careful with things like this:

    “Core Graphics is exclusively an internal API for Apple”

    It’s totally false. Core Graphics is a public, documented framework that which many applications use.

    You are, of course, documenting the non-public portion of Core Graphics, which is great, but the way you phrase it could be really confusing for programmers new to Mac OS X.

    Great work, though.

  6. 6

    That’s interesting. I was sure I’d written something more like
    “The private sections of Core Graphics that we’re using are exclusively an internal API for Apple”

    Thanks for picking that up.

  7. 7

    I posted up a slightly older version (I have about ten backup copies). I really can’t wait for Time Machine.

    I’ve updated the download with the correct version (which fixes the issues raised by Scott, and SeoxyS.) Thanks for telling me about my mistakes. ;)

  8. 8

    Congratulations for your book, it is a really cool reading!!
    I’ve one silly cuestion… it can be possible to combine CI transitions and effects with a simple project created with GLUT?
    thanks in advance!

  9. 9

    xphere, I’m not too sure about GLUT and Core Image. I’m certain Core Graphics wouldn’t be of use, but it would be possible to render ripples, flips and cubes (though with a lot of work).

    Core Image stuff, as far as I’m aware, can sort of be used in Quartz:
    Cube Image

    The Core Image transitions are of course available in the “Core Image Fun House” application as part of the developer tools. Unfortunately, I have little experience with OpenGL / GLUT so I may not be the best person to help you with this. Perhaps Scott Stevenson knows about this?

  10. 10

    Thanks so much for this.

  11. 11

    Ankur–
    This is fantastic. Thanks for taking the time to document all this, it’s stellar.

    Anyone know if this works on the 10.3 Panther version of Core Graphics? (I assume so, since the transitions are present in apps for 10.3).

    Anyways, thanks again.

  12. 12

    First off - thx Ankur for this refererence - it rocks.

    Quick question: Would it be possible to apply this technique to an NSView rather than an entire window? I’m thinking of something like clicking a button, and my current browser cube-rotates whilst the toolbar/window/statusbar remain…

  13. 13

    Ben, I think it should work in 10.3 but that’s just a blind guess. My first Mac was only this year, so I’m still fairly new.

    Duncan, applying Core Graphics transitions to a view is a lot more work than using Core Image. If you’re making a web browser, you’re probably better of taking the path of Shiira and using Core Image transitions. (You can just use the NSTabView subclass straight into your app.)

    It has been mentioned before though (by SeoxyS), that it would be possible to have a separate borderless window that you move the contentView to, then apply the Core Graphics transition to, thus making it appear as if it had been applied only to that view.

    If you need any more information, just post up. I’ll have a play with applying transitions to views in my spare time and see what I can get.

  14. 14

    Thanks very much for an excellent resource!

  15. 15

    Fantastic… Thanks alot :P

  16. 16

    Wow, Fantastic. Will there be an update on the eBook? I got some problem to adapt Demo 2 from the book with the new Xcode 3.x

  17. 17

    thank you !

RSS feed for comments on this post. TrackBack URI

Leave a comment

Comments may be edited for formatting.