First responder after alert
First responder after alert
- Subject: First responder after alert
- From: Andy Bettis <email@hidden>
- Date: Tue, 28 Jun 2005 16:01:06 +0100
Hi,
I have an alert displaying function:
- (void) display
{
NSRunAlertPanel(mTitle,mMessage,@"OK",nil,nil);
if (mField) {
BOOL result = [mWindow makeFirstResponder:mField];
}
}
Which is intended to set a field on the frontmost window as the first
responder after the alert has gone away. However this only works on
the second call, the first time I call it the current first responder
isn't changed. If I use the debugger to track the processing it all
works fine, which makes me think it's a timing/event/messaging
problem. Can anyone suggest a way of setting the first responder
effectively?
Many thanks
Rev. Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden