On 01.08.2009, at 4:42, Joel Norvell wrote:

You didn't say what objects you are drawing, so I should add this caveat: I'm not sure what variations, if any, would be induced by generalizing my approach to NSCell objects.

OK, maybe I provided not so clear problem description. I have _standard_ NSPathControl. It's style is set to PopUp. And I see a light blue rounded rectangle around the control. I'm not sure exactly, if it's a focus ring, because this border does not disappear, if I'm selecting (by mouse) other controls on the same panel. At least this border disappears if choose "none" in IB properties inspector for the Focus Ring.

My question was exactly "can I subclass NSPathControl to override this border drawing procedure to change the color of the border? If yes, then what method should I override?"

I'm not so skilled yet in controls inner structure yet, so I don't know if there is a special procedure, drawing the border, or it's drawn within the same method, which draws the control itself.

It looks like your code really draws "focus" ring, related to keyboard focus. But I'm not sure, if it's what I need for my case. Please advise if you can.

Another related problem is that checkbox has the same light-blue background in the checked state. And I don't see what property could change it. I'd like to change it to some grayscale value.

Thanks.

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to