Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using GCContextFillRect() vs. NSBezierPath's class methods



In the Developer sample code there's a project named Quartz/PathDemo, that looks like a very minimal example of drawing code. It eschews completely the conventional path (pardon the pun) of calling the NSBezierPath class method +fillRect:(NSRect) method to draw, instead getting the current context and calling GCContextFillRect().

What are the pros/cons of doing it this way? Or to put it a different way, what point was this sample code supposed to illustrate? There's a 30-line comment about copyright, but zero lines of comment about what the point (so to speak) of this example is.

Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.