Re: CALayer properties

2008-10-28 Thread DKJ
It just clicked... no need for replies! On 28 Oct, 2008, at 16:44, DKJ wrote: When I did this: myLayer.frame.size.width = rootLayer.frame.size.width; I got an "illegal lvalue" error. But when I do this: CGRect r = help.frame; r.size.width = rootLayer.frame.size.width

Re: CALayer properties

2008-10-28 Thread Dimitri Bouniol
Properties allow you to "drill down" and set values to the sub-properties that are objects (id or NSObject subclasses) of its own properties. However, the property called "frame" is a CGRect, a struct. Structs have the same syntax as properties, however it is wrong to assume they are the same th

Re: CALayer properties

2008-10-28 Thread Charles Steinman
- Original Message > From: DKJ <[EMAIL PROTECTED]> > > When I did this: > > myLayer.frame.size.width = rootLayer.frame.size.width; > > I got an "illegal lvalue" error. But when I do this: > > CGRect r = help.frame; > r.size.width = rootLayer.frame.size.width; > > the compi

CALayer properties

2008-10-28 Thread DKJ
When I did this: myLayer.frame.size.width = rootLayer.frame.size.width; I got an "illegal lvalue" error. But when I do this: CGRect r = help.frame; r.size.width = rootLayer.frame.size.width; the compiler says nothing. Why can I use layer.frame.size on the right of =,