This correctly "sets" the focus to the specified view
regardless of the current focus.
Kevin G.
I have a window with two text fields, and when it is shown I want
the first field to be focused. I do this by handling
kEventWindowActivated and calling HIViewAdvanceFocus, but it returns
errCouldntSetFocus. This error happens every time the window
activates (switching to another app and back), until I manually
click in one of the edit fields to focus it.
What's going on? What is it that gets fixed by clicking the edit
field?
Another problem is that the tab key does not switch the focus
between the edit fields, which I suspect is related.
I tried handling some other focus-related window events instead,
like kEventWindowFocusContent or FocusAcquired, but those events
never seemed to get sent.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden