• 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
Mutiple colors in one NSBezierPath?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mutiple colors in one NSBezierPath?


  • Subject: Mutiple colors in one NSBezierPath?
  • From: "Michael P. Rogers" <email@hidden>
  • Date: Mon, 11 Mar 2002 14:07:20 -0600

The documentation for NSBezierPath suggests that fill draws with the current graphics context's color. But if I try and set the color several times, filling after each, I get a solid color. For instance, the code below draws everything in anotherColor

NSBezierPath * myBP = [[NSBezierPath alloc]init];
[myColor set];
[myBP appendSomething];
[myBP fill];
[anotherColor set];
[myBP appendSomethingElse];
[myBP fill];

I gather, based on an article by Mike Beam, that this is just the way that NSBezierPath works. However, am I not changing the context when I say set? Clarification would be appreciated.

Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden

Web site: http://math.millikin.edu/
Astronomy Site: http://twincityamateurastronomers.org
_______________________________________________
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.

  • Follow-Ups:
    • Re: Mutiple colors in one NSBezierPath?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: How to insert a progress indicator in each row of a table
  • Next by Date: Re: Fwd: NSColorWell
  • Previous by thread: Re: How to insert a progress indicator in each row of a table
  • Next by thread: Re: Mutiple colors in one NSBezierPath?
  • Index(es):
    • Date
    • Thread