• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using GCContextFillRect() vs. NSBezierPath's class methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: A (Hopefully) simple menu problem
  • Next by Date: Re: NSTextViews with embedded pictures and vertical alignment
  • Previous by thread: Re: NSDateFormatter not validating input
  • Next by thread: Saving arrays with NSUserDefaults?
  • Index(es):
    • Date
    • Thread