• 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
Re: KVC compliance and validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVC compliance and validation


  • Subject: Re: KVC compliance and validation
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 28 May 2006 23:03:10 -0700


On May 28, 2006, at 6:06 AM, Richard Stacpoole wrote:

The problem is I don't know how to use the KVC validation method to ensure that the components each have a depth given:
[...]
But I don't understand where to use the validation methods if you can't use them in the -set<key> method. I somehow have to have some method call the validation method which checks values in the array (so it must be able to freely access values in the array) and then use KVC -set<key> to enter a valid value. But what is that method?


It's not clear what the problem is. Why can you not invoke the validation methods directly?
In general, you should invoke a validation method prior to setting the value, so you invoke the validation method in whatever method you implement to set the value.


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: KVC compliance and validation
      • From: mmalcolm crawford <email@hidden>
References: 
 >KVC compliance and validation (From: Richard Stacpoole <email@hidden>)

  • Prev by Date: Re: propertyListFromData: actually returns mutable objects?
  • Next by Date: Button binding
  • Previous by thread: KVC compliance and validation
  • Next by thread: Re: KVC compliance and validation
  • Index(es):
    • Date
    • Thread