Quartz vs Cocoa Drawing.

maybe a dumb question, but someone could explain me when to use Quartz and when using Cocoa Drawing? for example, when to use CGRect or NSRect??

thanks in advance!!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Quartz vs Cocoa

You can use either core graphics (quartz) or Cocoa drawing on the Mac. Everything with CG is core graphics, and requires you to use the quartz C API. Anything with NS is for Cocoa.

On the iPhone, you can only use core graphics. So if you need something to work on both Mac and iPhone, don't use Cocoa drawing.

Drew

---------------------------
Drew McCormack
http://www.maccoremac.com
http://www.macanics.net
http://www.macresearch.org