Skip navigation.
 
mlRe: ABPeoplePickerView: setting focus on the search field
FROM : Carl Gieringer
DATE : Wed Apr 20 01:12:24 2005

John,

What is the "people picker"?  Do you mean the "Add a Buddy" sheet?

Maybe you should subclass NSPanel and override makeKeyAndOrderFront and 
orderFront and any related methods, and then within those methods call 
makeFirstResponder: (NSWindow) or accepts/becomeFirstResponder 
(NSResponder)  for your search field.  Then call super's 
implementation.

On Apr 19, 2005, at 13:41, John Fox wrote:

> Hello:
>
> I've been using ABPeoplePickerView in a panel, and I'm trying to 
> figure out how to always have the cursor be active in the the search 
> field (i.e. that the search field receives the focus). This is the way 
> the people picker behaves in iChat. In my app however, after a user 
> selects a record and the panel is closed, the next time it's opened 
> the focus is no longer on the search field, but on the previously 
> selected record. The only way to force the cursor into the search 
> field is to use the tab key which is "non-obvious" to borrow a phrase. 
> I've tried called deselectAll: and that doesn't have any effect. 
> Further, there does not seem to be any public outlet for the search 
> field in this view. Is there some trick, hidden or otherwise, that I'm 
> missing
>
> Any help greatly appreciated.
>
> John
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/
> carl.<email_removed>
>
> This email sent to carl.<email_removed>
>

Related mailsAuthorDate
mlABPeoplePickerView: setting focus on the search field John Fox Apr 19, 23:41
mlRe: ABPeoplePickerView: setting focus on the search field Carl Gieringer Apr 20, 01:12
mlRe: ABPeoplePickerView: setting focus on the search field Jonathon Mah Apr 20, 01:19
mlRe: ABPeoplePickerView: setting focus on the search field: (Solved: though inelegantly) John Fox Apr 20, 01:23