• 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 text field as first responder in an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting text field as first responder in an NSView


  • Subject: Re: Setting text field as first responder in an NSView
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 01 Jun 2011 10:58:27 -0700

On Wed, Jun 1, 2011 at 10:53 AM, Jens Alfke <email@hidden> wrote:
>
> On Jun 1, 2011, at 10:51 AM, Kyle Sluder wrote:
>
>> You actually want to use initialFirstResponder here. You can wire up
>> the window's initialFirstResponder outlet in IB to your text field,
>> and it will do the right thing.
>
> But the OP said he’s loading views into the window dynamically after it’s created.

Ah, after the _view_ is loaded, not the _window._ Gotcha.

Yea, for obvious reasons -initialFirstResponder isn't gonna help with that. ;-)

--Kyle Sluder
_______________________________________________

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

References: 
 >Setting text field as first responder in an NSView (From: Eric Williams <email@hidden>)
 >Re: Setting text field as first responder in an NSView (From: Kyle Sluder <email@hidden>)
 >Re: Setting text field as first responder in an NSView (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Setting text field as first responder in an NSView
  • Next by Date: Re: Application Design
  • Previous by thread: Re: Setting text field as first responder in an NSView
  • Next by thread: What is the point of a host-reachability test that doesn't test the reachability of the host?
  • Index(es):
    • Date
    • Thread