Re: error: invalid lvalue in assignment

2008-08-26 Thread Don Arnel
object but I get this error: obj.position.x += 1.0; (x error: invalid lvalue in assignment) The above is equivalent to: [obj postion].x += 1.0; That isn't doing what you want. It's invoking the -position method on the object, which returns a Vector2D stru

Re: error: invalid lvalue in assignment

2008-08-25 Thread Ken Thomases
On Aug 25, 2008, at 6:25 PM, Don Arnel wrote: I tried to modify the "position" property in another file after creating an object but I get this error: obj.position.x += 1.0; (x error: invalid lvalue in assignment) The above is equivalent to: [obj postion

error: invalid lvalue in assignment

2008-08-25 Thread Don Arnel
= 0.0; _position.y = 0.0; } return self; } @end I tried to modify the "position" property in another file after creating an object but I get this error: obj.position.x += 1.0; (x error: invalid lvalue in assignment) I can assign the value wi