On pet 06.03.2015., at 18.37, Kyle Sluder wrote:

> On Fri, Mar 6, 2015, at 10:49 AM, Dragan Milić wrote:
> 
>> 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.
> 
> Please post the code for this category. Maybe it's colliding with an internal 
> implementation detail of the focus ring mechanism.

Sure, no problem. Since it’s a bit long, I attached it as a separate ObjC 
source file. A few notes:

* It’s rather old code (not made by me) that I haven’t looked into for years 
until this problem appeared.
* I rearranged it a bit for easier reading, so there may be some 
copy/paste/typo errors, but you should get the overall idea what it does.
* All drawing related code is contained within unique methods, no overriding.
* I was “lying”, there is a small NSButton category (defined within the same 
file), but it just checks if a button is of a checkbox type.

Thanks for looking into this, as I really hit a dead end with it.

Attachment: NSView-NTExtensions.m
Description: Binary data


-- 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