I think that discussions about validation of user entered data need to consider how you provide feedback to the user on what happened._______________________________________________Have you thought about how validation errors are integrated with Cocoa frameworks? I don't know anything about Virtus or SmartProperties but I would be surprised if they buy you anything when used in conjunction with a Cocoa user interface. Cocoa provides formatters. Take a look at "Text Field with Number Formatter" in the Xcode controls.SteveOn 22 Nov 2012, at 06:47, Colin Thomas-Arnold <colinta@gmail.com> wrote:_______________________________________________What happens if you use BOTH attr_accessor and attribute - the first for the IB outlet, and the other for validation. Just a thought."Basically, I need to make sure that when I ask for an integer, I get an integer. And when I want a string - I can reject anything but strings."Can't you use Ruby services like is_a? to force it ?Thanks, David KramfOn Nov 21, 2012, at 10:04 PM, Carolyn Ann Grant wrote:Basically, I need to make sure that when I ask for an integer, I get an integer. And when I want a string - I can reject anything but strings._______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel