Re: makeFirstResponder returns NO
Re: makeFirstResponder returns NO
- Subject: Re: makeFirstResponder returns NO
- From: Quincey Morris <email@hidden>
- Date: Tue, 19 Feb 2008 19:57:50 -0800
On Feb 19, 2008, at 19:00, Adam Gerson wrote:
- (IBAction)addServerButtonAction:sender {
[serverArrayController add:self];
[window makeFirstResponder:protocolTextField];
}
From the NSArrayController class reference for add:
Special Considerations
Beginning with Mac OS X v10.4 the result of this method is deferred
until the next iteration of the runloop so that the error
presentation mechanism can provide feedback as a sheet.
Presumably your text field won't accept first responder status (or
perhaps isn't enabled) until there's something in the array controller
for it to bind to, but that doesn't happen until some time after your
action method.
_______________________________________________
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