On Jun 1, 2011, at 9:15 AM, Eric Williams wrote: > I want to set the first responder for the window to be a text field in the > NSView after the view is loaded, so that a user can immediately start typing > into the field.
After the view is loaded into the window, call [window makeFirstResponder: textField]; You may also need to call [window recalculateKeyViewLoop] to tell the window to update the tab order of focusable controls in the window (unless you set the checkbox in IB on the window to have it do this automatically.) —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com