Question about NSResponder cancelOperation
Question about NSResponder cancelOperation
- Subject: Question about NSResponder cancelOperation
- From: Iain Delaney <email@hidden>
- Date: Fri, 23 Feb 2007 22:43:35 -0500
Hello,
I've got a window with two NSTextFields on it. I want the user to be
able to cancel editing in either of the text fields, but I need
different behaviour depending on which field is active when the user
hits Esc.
My controller class implements cancelOperation, so I'd like to
determine which text field send the message by examining the sender
argument. The problem is that the sender argument is nil, according
to NSLog and gdb.
Does anyone know what's going on here?
Thanks,
Iain Delaney
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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