Ok if I have 3 objects.
ObjectType *objX;
ObjectType *objY;
ObjectType *tempObjHolder;
objX = [[alloc ObjectType] init];
objY = [[alloc ObjectType] init];
// some code to change values in the objX and objY
tempObjHolder = objX;
objX = objY;
objY = tempObjHolder;
Am i swapping the objects ok. Or am I confused to how this works. Do i end up making them all point to one object?
What I am trying to do is make ObjX equal to what objY is then make ObjY equal to what ObjX was.
Thanks -Code