Re: Focus ring of NSComboBox and text field visible through overlaid views
Re: Focus ring of NSComboBox and text field visible through overlaid views
- Subject: Re: Focus ring of NSComboBox and text field visible through overlaid views
- From: Navneet Kumar <email@hidden>
- Date: Tue, 27 Jun 2017 19:27:45 +0530
Hi everyone,
The problem is still there.
The problem is everywhere in my project.
A custom view when overlapped with a transparent view (subview to window’s
contentView) and a subview on top of transparent view, also shows the custom
cursor and tooltip assigned to the custom view. Even when the custom view’s
tracking area is with option NSTrackingActiveInVisibleRect.
So far I have been finding workarounds for this, like disabling combo boxes and
setting tool tip to nil while the view is being overlapped.
Sadly I got no responses, not even some clue to guide me in the right
direction….
Is it too dumb of a question? Something very basic I maybe missing?
Please look at the earlier question, it has a link to a image showing the
problem.
Please help.
Navneet
> On 16-May-2017, at 9:44 PM, Navneet Kumar <email@hidden> wrote:
>
> 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
_______________________________________________
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