Core Animation - Modifying CAConstraints

2008-03-13 Thread Karl Goiser
Hello Cocoaers, I have a situation where I want to re-order sublayers of a layer which are positioned using CAConstraints. Is this at all possible? The constraints array property of a CALayer is declared as: @property(copy) NSArray *constraints; Which tells me that I can't modify the array

Re: Core Animation - Modifying CAConstraints

2008-03-13 Thread Dimitri Bouniol
As far as i know, you can either set the constraints property to nil and re-set the constraints you want to use, or set up your own layout manager to handle positioning the layers. On Mar 13, 2008, at 4:23 PM, Karl Goiser wrote: Hello Cocoaers, I have a situation where I want to re-order s

Re: Core Animation - Modifying CAConstraints

2008-03-13 Thread Nathan Vander Wilt
> I have a situation where I want to re-order > sublayers of a layer which > are positioned using CAConstraints. > > Is this at all possible? Not sure what you mean by "re-order", whether z-order or sibling order, or if you mean re-layout? Using CAConstraints will help with the last option. >