Re: NSTextField "Discard Change"
Re: NSTextField "Discard Change"
- Subject: Re: NSTextField "Discard Change"
- From: Sean McBride <email@hidden>
- Date: Tue, 09 Apr 2019 11:40:25 -0400
- Organization: Rogue Research Inc.
On Sun, 7 Apr 2019 10:03:45 -0700, Quincey Morris said:
>Third, what I think you’re looking for is “discardEditing”, which is a
>part of the NSEditor protocol, to which NSTextField conforms.
A timely thread, as I'm investigating something quite similar, and was
searching my email for 'commitEditing'.
NSTextField in fact does *not* support commitEditing/discardEditing, as per
this a decade ago:
<https://lists.apple.com/archives/cocoa-dev/2008/Aug/msg00529.html>
I don't think I ever did find another solution to my problem other than to use
an NSObjectController.
In my case, I'm wanting to commitEditing on a text field in the action method
of a push button that consults the text field's value.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden