Re: NSTextField annoyances
Re: NSTextField annoyances
- Subject: Re: NSTextField annoyances
- From: Greg Titus <email@hidden>
- Date: Mon, 29 Jul 2002 10:19:13 -0700
On Monday, July 29, 2002, at 09:24 AM, Adrian Rutledge wrote:
Just noticed this annoyance when I got my app to a point where the
server starts spitting no text to send errors at me. Is there any way
to set an NSTextField to only call its action when I press enter,
rather than any time I leave it?
In Interface Builder, select the text field, hit cmd-1 to show the
attribute inspector, and change the "Send Action" radio buttons from "On
end editing" to "Only on enter".
Or in code, [[myTextField cell] setSendsActionOnEndEditing:NO];
Hope this helps,
-Greg
_______________________________________________
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.