• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings and Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Bindings and Validation (From: Philip Buckley <email@hidden>)
 >Re: Bindings and Validation (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Bindings and Validation
  • Next by Date: ARC and NSApplescript
  • Previous by thread: Re: Bindings and Validation
  • Next by thread: ARC and NSApplescript
  • Index(es):
    • Date
    • Thread