How to change the focus ring color?
问题 In the draw function of the NSImageView ,I want to set my custom focus ring color,not the default blue color.I tried as follows code NSSetFocusRingStyle(NSFocusRingOnly); [[NSColor redColor] setStroke]; NSRectFill([self bounds]); But the color is still default blue color.How can I solve this problem? update: The NSShadow class help me to accomplish adding focus ring.It's easy to change the shadow color. NSShadow *shadow = [[[NSShadow alloc] init] autorelease]; [shadow setShadowBlurRadius:5];