You could override the controlTextDidEndEditing method:

- (void)controlTextDidEndEditing:(NSNotification *)aNotification{
    ...
    if([[[aNotification userInfo] valueForKey:@"NSTextMovement"] intValue]
         == NSReturnTextMovement) {
        //  invoke whatever button pressed code.
        }
    }

This can be advantageous if you allow empty fields.  The user can use the
enter key while the cursor is in any field instead of tabbing all the way to
the button.

You can also check for "NSTabTextMovement" or "NSBacktabTextMovement" if you
want to do any processing between fields.



On 10/07/08 2:02 PM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Next Key View doesn't "go to" pushbutton


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to