Trouble w/ key-value binding validation
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