On 10/16/2015 2:28 PM, James Walker wrote:
I have a legacy app with a Carbon event loop and some Carbon windows and
some Cocoa windows.  When I edit text in a text field in a Cocoa window
(NSTextField), the focus ring gets darker and darker.  When the field
loses focus, the focus ring does go away.  Any idea what I could do
about this, other than spending a year doing nothing but converting
completely to Cocoa?

I found a fix. Whenever I get or set the content of a field (stringValue, setDoubleValue:, etc.) I invalidate the focus ring, i.e.,

[myField setKeyboardFocusRingNeedsDisplayInRect: [myField bounds]];

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (Carbon-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to