title: Cocos2D CCNode position in absolute screen coordinates
body: <p>I've been looking around for a while, and I have not been able to find an answer to this for some reason. It seems simple enough, but maybe I just can't find the right function in the library.</p>
  
  <p>I have a scene with a layer that contains a bunch of CCNodes with each one CCSprite in them.</p>
  
  <p>During the application, I move around the position of the main layer, so that I "pan" around a camera in a way. (i.e. I translate the entire layer so that the viewport changes).</p>
  
  <p>Now I want to determine the absolute position of a CCNode in screen coordinates. The position property return the position relative to the parent node, but I really would like this transformed to its actual position on screen.</p>
  
  <p>Also, as an added bonus, it would be awesome if I could express this position as coordinate system where 0,0 maps to the upper left of the screen, and 1,1 maps to the lower right of the screen. (So I stay compatible with all devices)</p>
  
  <p>Edit: Note that the solution should work for any hierarchy of CCNodes preferably. </p>