Default button vs. Return key
Default button vs. Return key
- Subject: Default button vs. Return key
- From: Sean Todd <email@hidden>
- Date: Mon, 14 Apr 2003 14:00:37 -0500
Hi,
I am getting different behavior depending on if I click on a default
button or I just press the return key. The button is on a sheet and
invokes a method that reads in data from a few text entry fields,
clears the fields for the user to enter the next set of entries and
then calls:
[myWindow makeFirstResponder: firstEntryField];
so that the first entry field again becomes the firstResponder.
Clicking the button generates the desired behavior but pressing the
return key fails to reset the first entry field as the firstResponder.
In the latter case, the last field that was the firstResponder remains
the firstResponder after the fields are cleared.
Can anyone explain this difference? I found a similar post in the
archives about a year ago but there were no replies.
Thanks,
Sean Todd
_______________________________________________
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.