Re: Bindings and Validation
Re: Bindings and Validation
- Subject: Re: Bindings and Validation
- From: Philip Buckley <email@hidden>
- Date: Fri, 05 Apr 2013 17:25:17 +0100
Hi Shane,
Thanks, yes, that works. The method you cite gets called before the value is committed back to the array through the bindings mechanism, so intervening at that point is perfect.
I'm still slightly curious as to what key-value validation (see link in my first email) is used for? And that checkbox in the Bindings palette titled "Validates Immediately" keeps winking at me, but I guess I'm happy to ignore it. ;-)
Philip
On 4 Apr 2013, at 23:03, Shane Stanley wrote:
> What you probably need to do is implement a table view delegate. This conforms to the NSControlTextEditingDelegate Protocol, which includes control:textShouldEndEditing:. When it's called, you will have to do the validation yourself, and if necessary show a sheet describing any problem.
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden