Detecting focus on control
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