modal sheet with validation logic
modal sheet with validation logic
- Subject: modal sheet with validation logic
- From: "Ronnie B" <email@hidden>
- Date: Tue, 30 Dec 2008 13:09:50 -0500
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@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