• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
modal sheet with validation logic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: modal sheet with validation logic
      • From: Nathan Kinsinger <email@hidden>
  • Prev by Date: Re: respondsToSelector - #import OR compiler warnings?
  • Next by Date: Re: Odd EXEC_BAD_ACCESS after executing URLRequest
  • Previous by thread: Re: Display Format Pop-up on Open Panel
  • Next by thread: Re: modal sheet with validation logic
  • Index(es):
    • Date
    • Thread