• 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
Re: Setting focus to text field in drawer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Setting focus to text field in drawer
      • From: Bill Cheeseman <email@hidden>
    • Re: Setting focus to text field in drawer
      • From: Andreas Mayer <email@hidden>
    • Re: Setting focus to text field in drawer
      • From: Seth Willits <email@hidden>
References: 
 >Re: Setting focus to text field in drawer (From: Arthur Clemens <email@hidden>)

  • Prev by Date: Re: Accessing System Preferences?
  • Next by Date: Re: Question regarding menus and document based app.
  • Previous by thread: Re: Setting focus to text field in drawer
  • Next by thread: Re: Setting focus to text field in drawer
  • Index(es):
    • Date
    • Thread