Default button from inside NSMatrix?
Default button from inside NSMatrix?
- Subject: Default button from inside NSMatrix?
- From: email@hidden
- Date: Thu, 21 Aug 2003 10:48:48 -0700
I have an NSMatrix with 4 text fields inside an NSTabView, inside a panel.
Outside the NSTabView on the panel itself is a default OK button. The text
fields must be completely filled in (6 chars each) before the OK button
gets enabled. My problem is that hitting Return when you're done filling
in the fields doesn't press the OK button. It just highlights the text,
or, in some cases, generates an NSEvent exception "Invalid message sent to
event..."
How can I get the Return key to hit the default OK button outside the
NSTabView? I can't set the OK button as the NSMatrix's target because then
just clicking on one of the fields or tabbing between them will press the
OK button.
Thanks,
--Mike
******************************* IMPORTANT ! **********************************
The content of this email and any attachments are confidential and intended
for the named recipient(s) only.
If you have received this email in error please notify the sender immediately.
Do not disclose the content of this message or make copies.
This email was scanned by eSafe Mail for viruses, vandals and other
malicious content.
******************************************************************************
_______________________________________________
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.