• 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
Trouble w/ key-value binding validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble w/ key-value binding validation


  • Subject: Trouble w/ key-value binding validation
  • From: Luc Van Bogaert <email@hidden>
  • Date: Sat, 07 Nov 2015 00:23:55 +0100
  • X_v_e_cd: 3e1bf30757fa4822cb41994ab7653fc5
  • X_v_r_cd: 147e2b5694dd0c03efab6d7d8bfd1b58

Hi,

In a tableview with a content binding and a value binding on the table cell view textfields to the model's objectValue keypaths, I'm having trouble getting the key-value validation to work correctly. In the model class, I have implemented the required validation methods (validateKey(_ :) throws), for each of the properties, but the validation method only seems to get called for scallar types and not for eg. String types. I've made sure I checked "Validates immediately" in the binding attributes.
Any ideas about what I may be doing wrong?

--
Luc Van Bogaert



_______________________________________________

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


  • Follow-Ups:
    • Re: Trouble w/ key-value binding validation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Multiple simultaneous UIAlertControllers
  • Next by Date: Sandbox and app (and its parts)
  • Previous by thread: Re: runOnMainQueueWithoutDeadlocking and all its evils.
  • Next by thread: Re: Trouble w/ key-value binding validation
  • Index(es):
    • Date
    • Thread