Using GCContextFillRect() vs. NSBezierPath's class methods
Using GCContextFillRect() vs. NSBezierPath's class methods
- Subject: Using GCContextFillRect() vs. NSBezierPath's class methods
- From: Andrew Duncan <email@hidden>
- Date: Tue, 29 Jun 2004 15:13:19 -0700
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.