Re: NSTextField "Discard Change"
Re: NSTextField "Discard Change"
- Subject: Re: NSTextField "Discard Change"
- From: Richard Charles <email@hidden>
- Date: Sat, 27 Apr 2019 11:26:55 -0600
> On Apr 9, 2019, at 9:40 AM, Sean McBride <email@hidden> wrote:
>
> 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.
My testing shows you are correct. Contrary to the documentation NSTextField
does not support the NSEditor protocol. No App Kit user interface elements that
I can find support this protocol. It is only supported by NSController and
NSViewController.
--Richard Charles
_______________________________________________
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