H,
I have an NSBezierPath that I created and I called -stroke on it. How do I remove/delete it from the view without deallocating the object.
Thanks - Rebecca
H,
I have an NSBezierPath that I created and I called -stroke on it. How do I remove/delete it from the view without deallocating the object.
Thanks - Rebecca
If you want to temporary disable drawing, you can set [NSColor clearColor]
before calling stroke
.
A -stroke
message tells the NSBezierPath
to render itself in the current drawing context. If you've drawn a path in a view, and you want the stroked path to go away, just redraw the view without the path.