Re: question on layer setup in Covertflow sample code

2008-06-24 Thread Scott Anguish
first, please don't crosspost between cocoadev and quartz-dev the reflection is a sublayer of the image so that it will move the same. rotate the layer with the image in it, the reflection also rotates. the reflection layer uses additional Core Animation features to display only parts o

question on layer setup in Covertflow sample code

2008-06-17 Thread Wayne Shao
Hi, I was reading the code (part of Core Animation sample code) and could not understand the part that the reflection layer is a sublayer of the desktop image layer. e.g, in Controller.m layer = [CALayer layer]; desktopImageLayer = [CALayer layer]; [layer setSublayers:[NSArray a