• 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
Re: How to copy Color Panel behaviour?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to copy Color Panel behaviour?


  • Subject: Re: How to copy Color Panel behaviour?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 10 Sep 2014 09:42:47 +1000

On 10 Sep 2014, at 7:13 am, Luc Van Bogaert <email@hidden> wrote:

> This opens the panel without making it key, which is OK, but it still makes the panel key when I click any of the responder objects in the panel, such as a collectionview...

'becomesKeyOnlyIfNeeded' does what it says, but how does it define 'needed'. It does that by allowing the panel to become key if any of its views or controls accept first responder. So to prevent that, these also need to refuse FR by overriding -acceptsFirstResponder to return NO.

--Graham



_______________________________________________

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


  • Follow-Ups:
    • Re: How to copy Color Panel behaviour?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: How to set UILabel height to even multiple of line height with auto-layout?
  • Next by Date: Re: How to copy Color Panel behaviour?
  • Previous by thread: Re: How to set UILabel height to even multiple of line height with auto-layout?
  • Next by thread: Re: How to copy Color Panel behaviour?
  • Index(es):
    • Date
    • Thread