Quartz vs Cocoa Drawing.
By cesar at Thu, Jan 29 2009 6:39am |
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!!!
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!!!
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