Re: rvalue vs lvalue (was Re: something I can't understand)
Re: rvalue vs lvalue (was Re: something I can't understand)
- Subject: Re: rvalue vs lvalue (was Re: something I can't understand)
- From: WT <email@hidden>
- Date: Wed, 29 Jul 2009 16:19:42 +0200
On Jul 29, 2009, at 4:12 PM, glenn andreas wrote:
On Jul 29, 2009, at 8:35 AM, Dragos Ionel wrote:
verticalLoc and x are readonly values, you cannot assign them.
use the frame property, first to retrieve it, change the x value
and then to
reassign to the button.
something like
CGFrame frame = pPngButton.frame;
frame.x = ...;
pPngButton.frame = frame;
Dragos
No, that isn't correct at all - he's declared verticalLoc as a
property that is perfectly valid to set (though, since this is the
iPhone, should be declared as nonatomic as well)
...
Not only that, but also there is no such thing as a CGFrame (it must
be CGRect) and no such thing as frame.x (it must be frame.origin.x),
if frame is a CGRect.
Wagner
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden