wow, sounds awesome. i’m gonna take a look imediatly
determined by SeoxyS on November 20, 2006 10:18 pm | Permalink
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?
disclosed by SeoxyS on November 20, 2006 10:31 pm | Permalink
4
Oops. Yeah, must have been a typo. I’ll update it soon.
declared by Ankur on November 21, 2006 7:06 am | Permalink
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.
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.
recorded by Ankur on November 21, 2006 2:57 pm | Permalink
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.
uttered by Ankur on November 21, 2006 4:12 pm | Permalink
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!
professed by xphere on November 22, 2006 1:30 am | Permalink
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:
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?
spoken by Ankur on November 22, 2006 6:41 am | Permalink
10
Thanks so much for this.
proclaimed by Mike Gregoire on November 22, 2006 11:37 pm | Permalink
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.
spoken by ben on December 3, 2006 11:51 am | Permalink
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…
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.
divulged by Ankur on December 8, 2006 8:52 pm | Permalink
14
Thanks very much for an excellent resource!
voiced by Adam on December 25, 2006 5:39 am | Permalink
18 Comments so far
Leave a commentThat’s fantastic, thank you, thank you, thank you, thank you.
spoken by Alejandro on November 20, 2006 10:11 pm | Permalink
wow, sounds awesome. i’m gonna take a look imediatly
determined by SeoxyS on November 20, 2006 10:18 pm | Permalink
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?
disclosed by SeoxyS on November 20, 2006 10:31 pm | Permalink
Oops. Yeah, must have been a typo. I’ll update it soon.
declared by Ankur on November 21, 2006 7:06 am | Permalink
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.
reported by Scott Stevenson on November 21, 2006 1:04 pm | Permalink
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.
recorded by Ankur on November 21, 2006 2:57 pm | Permalink
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.
uttered by Ankur on November 21, 2006 4:12 pm | Permalink
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!
professed by xphere on November 22, 2006 1:30 am | Permalink
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:

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?
spoken by Ankur on November 22, 2006 6:41 am | Permalink
Thanks so much for this.
proclaimed by Mike Gregoire on November 22, 2006 11:37 pm | Permalink
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.
spoken by ben on December 3, 2006 11:51 am | Permalink
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…
expressed by Duncan on December 8, 2006 6:12 pm | Permalink
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.
divulged by Ankur on December 8, 2006 8:52 pm | Permalink
Thanks very much for an excellent resource!
voiced by Adam on December 25, 2006 5:39 am | Permalink
Leave a comment