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
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
- 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
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 =,