title: change parent of a CCSprite in cocos2D
body: <p>I'm kind of new in cocos2Dm and i'm facing a problem that i can't solve
  So far I have 2 sprites (let's call them tables) in the layer , that is touchable, one of them has added other sprites, that I wanna move from one table to another one, i'm recognizing the objets that I touch, &amp; moving them around, My problem is that I can't  change the parent to be the other table, I tried to remove the object from parent in different ways &amp; add the no the new parent, but it doesn't seem to work, the object is duplicated cause it's not being removed, I even tried to remove them when I touch it.
  I'm storing the objects in _objectsToDrag &amp; calling this function in touchbegan:</p>
  
  <pre><code>- (void) lookForObjectWithTouchLocation:(CGPoint)touchLocation
  {
      for (RICCObject *object in _objectsToDrag) {
          if (CGRectContainsPoint(object.boundingBox, touchLocation)) { 
              _selectedObject = object;
          }
      }
      if (_selectedObject) {
          [self objectSelectedWithLocation:touchLocation];
      }
  }
  </code></pre>
  
  <p>And then using _selectedObject to move it around, is this the problem? should I use aributes instead local objects in an array?</p>
  
  <p>Any help is welcome
  Thank you in advance</p>