Focus ring of NSComboBox and text field visible through overlaid views
Focus ring of NSComboBox and text field visible through overlaid views
- Subject: Focus ring of NSComboBox and text field visible through overlaid views
- From: Navneet Kumar <email@hidden>
- Date: Tue, 16 May 2017 16:14:06 +0000 (GMT)
Hi,
I have the following view hierarchy in question:
self.window.contentView --subview--> Transparent view (in code, main purpose to have a drop shadow for subview) of same size with setWantsLayer and a drop shadow, also acceptsFirstResponder --subview--> a smaller centred view (subclassed for background colour using NSRectFill()), doesn't have layer.
The problem is that the focus ring belonging to a combo box (in the self.window.contentView) is visible through to the last subview.
The image is uploaded and url is: http://i63.tinypic.com/2v3sk6b.jpg
Tried with all combinations of isOpaque and acceptsFirstResponder etc in all concerned views.
How to make it go away without having to part with focus ring (they are there for a purpose)?
Thanks,
Navneet
Sent from iCloud
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden