Re: Setting focus to text field in drawer
Re: Setting focus to text field in drawer
- Subject: Re: Setting focus to text field in drawer
- From: publiclook <email@hidden>
- Date: Sun, 10 Aug 2003 20:53:16 -0400
On Sunday, August 10, 2003, at 06:17 PM, Arthur Clemens wrote:
In a method in AppController I use:
[_mainWindow makeFirstResponder:_searchField];
where _mainWIndow is the window of the AppController, and _searchField
is the text field of the drawer and by connecting it with IB also a
(IBOutlet) data member of AppController.
How about
[[_searchField window] makeKeyAndOrderFront:nil];
[[_searchField window] makeFirstResponder:_searchField];
Also, Apple reserves all variable names that start with just one
underscore and don't have a unique prefix. I suggest
_xxSearchField where xx is an two characters appropriate to your
application.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.