Workaround for annoying NSFocusRing bug in NSImageView
For some reason it can be very difficult to get rid of focus rings in
NSImageViews if [super drawRect:rect] is ever called - apparently the
class does not consider the value set in
I finally figured out a simple workaround - I noticed that the blue
ring is only present if the image view's 'editable' attribute is set.
In my subclasses drawRect class I just make sure that 'editable' is
set to NO when [super drawRect:rect] is called:
BOOL wasEditable = [self isEditable];
The darned ring finally goes away...
The ring also seemed to have a buggy redraw during window resize,
leaving lots of blue lines all over the place.