title: How to change NSRect to CGRect?
body: <pre><code>-(void)drawRect : (NSRect)rect 
  {    
          imgRect.orgin = NSZeroPoint;
  
          imgRect.size = [appleImage size];
  
          drawRect = [self bounds];
  
          [appleRect drawInRect:appleRect     
                       fromRect:imgRect     
                       operation:NSCompositeSourceOver     
                       fraction:1.0];
          ...     
  }
  </code></pre>
  
  <hr>
  
  <p>I'm trying this but it's not easy and driving me crazy.</p>
  
  <p>How to change NSRect type code to CGRect type code ?</p>
  
  <p>plz help! </p>
  
  <p>ps. i already know.. NSRect -> CGRect , NSZeroPoint -> CGRectZero</p>