Clearing an NSView
Clearing an NSView
- Subject: Clearing an NSView
- From: "Phil Barrett" <email@hidden>
- Date: Tue, 24 Jul 2001 15:29:07 +0100
I have an NSView used as an overlay, so it's mostly transparent. I draw
something into it. I then want to clear it back to transparent again. But
how do I do this?
[[NSColor clearColor] set]; [NSBezierPath fillRect:bounds]; doesn't work,
because filling with transparent has no effect.
Help!
Phil