On uto 17.02.2015., at 01.04, Corbin Dunn wrote:

> On Feb 12, 2015, at 6:40 AM, Dragan Milić  wrote:
> 
>> I’m dealing with a rather strange issue. When running my application on 
>> Yosemite, all buttons lose focus ring (when having focus). When I say all, I 
>> mean absolutely ALL buttons, even those in standard alert panels and sheets. 
>> I can move focus between buttons using keyboard without any problem 
>> (provided that pressing tab is set to move focus between “All controls” in 
>> the Keyboard System Preferences), it’s just that a button currently having 
>> focus doesn’t draw its focus ring. Focus rings of text fields and lists are 
>> drawn as expected.
>> 
>> When running exactly the same application bundle under Mavericks (and 
>> earlier), everything seems fine, button focusses are shown as expected. I’d 
>> really appreciate any help in solving this mysterious problem. Thanks in 
>> advance.
> 
> Sounds like you have added a bad category on NSButton, NSButtonCell, 
> NSControl or NSView that overrides some default behavior.
> 
> corbin

My apologies for responding after such a long delay. I was on a winter holiday 
and I returned from it injured, so I really haven’t spent much time working or 
in front of my computer during the past four weeks.

Thanks for the suggestion. A bad category was something I also thought could be 
the reason for this behaviour, but it looks like it isn’t. There are no 
NSButton, NSButtonCell, nor NSControl categories. There is a single NSView 
category, but it doesn’t do anything related to drawing, it just defines and 
implements some convenient methods for finding subviews and superviews of a 
certain class.

I’m still trying to figure out what’s going on and why this happens.

-- Dragan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to