/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ // other stuff might happen here if ([self showsFirstResponder]) { // showsFirstResponder is set for us by the NSControl that is drawing us. NSRect focusRingFrame = cellFrame; focusRingFrame.size.height -= 2.0f; [NSGraphicsContextsaveGraphicsState]; NSSetFocusRingStyle(NSFocusRingOnly); } // other stuff might happen here }
Comments
