Re: Problem on clearing points and paths on a NSView
Re: Problem on clearing points and paths on a NSView
- Subject: Re: Problem on clearing points and paths on a NSView
- From: Jens Alfke <email@hidden>
- Date: Tue, 22 Jul 2008 18:10:03 -0700
On 22 Jul '08, at 3:03 PM, JArod Wen wrote:
I met a problem on clearing points and paths on a customized NSView.
I set four NSBezierPath for drawing: pathForPositionMeasure,
pathForDistanceMeasure, pathForAngleMeasure and selectedPath, and
used the following code for clearing:
And the drawRect is only contained the code to draw these four
paths. But after these lines are executed, points and paths are
still there on the view. Is there any way to clear them?
I think we need to see your -drawRect: method. And where are the four
path variables declared? They're instance variables of the view class,
probably?
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden