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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]