I started to read the chapter to understand. Stef
> stephane ducasse wrote >> show us how you specify that? > > It's a simple Spec UI, receiving announcements from the domain object. > Whenever the model changes, the UI receives: > modelChanged: anAnnouncement > > failureList items: model validate failures. > > #validate is the main entry point for the framework. You can call this on > any domain object and the validation rules will be run. Under the hood are > specialized SUnit classes. Here (on Nabble) is a screenshot of the validator > class, a specialized TestCase which holds the rules for the object in the > screencast: > <http://forum.world.st/file/n4690694/Screen_Shot_2013-05-29_at_5.37.12_PM.png> > > > The really cool thing which is not shown in the video is that the failures > are real objects which hold the domain object, the property that failed > (called an 'aspect'), and the description shown in the UI. So you could do a > lot more than show the description... > > > > ----- > Cheers, > Sean > -- > View this message in context: > http://forum.world.st/ANN-ValidationRevisited-alpha-tp4690680p4690694.html > Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com. >
