Hi All and Happy New Year , I am trying to do something not usual with the modal sheet. I have a field and a submit button on a sheet, and I want to implement some validation behavior. Two things I am trying to achieve are: 1. If the field's data fails my validation, I want to have the colored red border around the field 2. I would like not to have the sheet dismissed until validation passes.
So, the sheet is displayed, user enters an invalid data, OK pressed, sheet remains open, red border appears around the field. User enters a valid data, OK pressed, sheet is dismissed. >From what I understand about the modal sheets, they need to be dismissed (to avoid messing up with the main event loop). Can anyone advise on the two questions above, or at least inform if that is possible to begin with. If keeping a sheet open is not an option, I will go with the scenario of closing it and re-opening it again. In this case, how to implement the point 1 above - to have a red border around the text field. Thanks, Ron _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
