evdude100
evdude100

Reputation: 437

Remove a drawn NSRect or other drawn object

How do I remove a drawn NSRect or other object other than drawing another rect over it?

Upvotes: 0

Views: 283

Answers (1)

Deepak Danduprolu
Deepak Danduprolu

Reputation: 44633

Assuming you drew the rect in drawRect:, all you need to do would be to exclude the rect from the list of objects to be drawn and call [view setNeedsDisplayInRect:theRect]. theRect here would be the CGRect equivalent.

Upvotes: 1

Related Questions