• 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
Detecting focus on control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting focus on control


  • Subject: Detecting focus on control
  • From: Erik Stainsby <email@hidden>
  • Date: Fri, 10 Aug 2012 17:54:35 -0700

Is it the case that setting up a trackingArea over a given control is the easiest way to detect the arrival of focus on a given control?

I'm thinking in terms of tab-advancing keyboard activity here, where the user advances onto a modestly complex screen region (a postal address displayed in NSBox holding a multiLineLabel). Upon arrival of focus I want to swap in a fielded edit interface.

It seems like this sort of awareness ought to be trivial to glean, but I'm not seeing it in NSView nor NSControl where I would expect to find it documented.  Advice on where I ought to look?

TIA
~ Erik
_______________________________________________

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: Detecting focus on control
      • From: Andy Lee <email@hidden>
    • Re: Detecting focus on control
      • From: Graham Cox <email@hidden>
    • Re: Detecting focus on control
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: 32-bit on 10.8
  • Next by Date: Re: 32-bit on 10.8
  • Previous by thread: Re: help indexer or hiutil help
  • Next by thread: Re: Detecting focus on control
  • Index(es):
    • Date
    • Thread