Re: Mutiple colors in one NSBezierPath?
Re: Mutiple colors in one NSBezierPath?
- Subject: Re: Mutiple colors in one NSBezierPath?
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 11 Mar 2002 13:47:44 -0800
On Monday, March 11, 2002, at 12:07 PM, Michael P. Rogers wrote:
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.
What's happening is that the last fill covers the first fill.
This isn't like Postscript, where filling the path consumes it
and leaves you an empty current path.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
_______________________________________________
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.