• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Focus ring of NSComboBox and text field visible through overlaid views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Video Player Controls?
  • Next by Date: Video Player Controls?
  • Previous by thread: Re: Video Player Controls?
  • Next by thread: Button doesn't respond to touches in landscape mode
  • Index(es):
    • Date
    • Thread