Responder chain difficulty
Responder chain difficulty
- Subject: Responder chain difficulty
- From: Peter Hudson <email@hidden>
- Date: Tue, 15 Mar 2005 13:27:10 +0000
I have a small window that I run as a sheet from the main window of my application.
It has two NSTextFields ( called A and B for clarity ) and two NSButtons in it.
One of the buttons is is set to be default ( \R ).
I have set the keyboard loop so that text field 'A' is first responder - with a nextKeyView of text field 'B'. Text field 'B' has a nextKeyView of text field 'A'.
I start the sheet using the NSApp.beginSheet: etc method.
Most of the time this arrangement works perfectly - I enter text in field 'A' and tab to field 'B' and enter the other text required. Press return - and the sheet dissapears etc....
Occasionally when I run the sheet the whole process grinds to a halt. The sheet appears and I cant type into either field and tabbing is not possible between the fields. When I try to tab between the text fields I get the following messages on the console :
[Message 1]
-_oldFirstResponderBeforeBecoming is not a valid message outside of a responder's implementation of -becomeFirstResponder.
[Message 2]
-_newFirstResponderAfterResigining is not a valid message outside of a responder's implementation of -resignFirstResponder.
Baffling.
Peter
_______________________________________________
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