Re: How remove a clip path?

2009-05-05 Thread Graham Cox
On 06/05/2009, at 4:47 AM, McLaughlin, Michael P. wrote: In a custom NSBezierView, I fill the view with a background color then set a clip path that will eventually be drawn as a map. I do this so that I can color-code the map (in a complicated way) without "going outside the lines". If

Re: How remove a clip path? SOLVED

2009-05-05 Thread Michael Ash
On Tue, May 5, 2009 at 2:57 PM, McLaughlin, Michael P. wrote: > Naturally, I came up with a solution two minutes after posting my query to > this list :-( > > My solution is > > [[NSBezierPath bezierPathWithRect:rect] setClip]; > > where rect is the viewRect.  This works for me.  It might not be t

Re: How remove a clip path? SOLVED

2009-05-05 Thread Steve Christensen
On May 5, 2009, at 11:57 AM, McLaughlin, Michael P. wrote: Naturally, I came up with a solution two minutes after posting my query to this list :-( My solution is [[NSBezierPath bezierPathWithRect:rect] setClip]; where rect is the viewRect. This works for me. It might not be the best s

How remove a clip path? SOLVED

2009-05-05 Thread McLaughlin, Michael P.
Naturally, I came up with a solution two minutes after posting my query to this list :-( My solution is [[NSBezierPath bezierPathWithRect:rect] setClip]; where rect is the viewRect. This works for me. It might not be the best solution in all cases. *** Original post *** In a custom NSBezierV

Re: How remove a clip path?

2009-05-05 Thread Randall Meadows
On May 5, 2009, at 12:47 PM, McLaughlin, Michael P. wrote: In a custom NSBezierView, I fill the view with a background color then set a clip path that will eventually be drawn as a map. I do this so that I can color-code the map (in a complicated way) without "going outside the lines". I

How remove a clip path?

2009-05-05 Thread McLaughlin, Michael P.
In a custom NSBezierView, I fill the view with a background color then set a clip path that will eventually be drawn as a map. I do this so that I can color-code the map (in a complicated way) without "going outside the lines". If I then draw the map, external boundaries are drawn as half-width l