• 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: bindings, nested arrays and validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings, nested arrays and validation


  • Subject: Re: bindings, nested arrays and validation
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 29 Apr 2007 15:20:28 -0700


On Apr 29, 2007, at 2:16 PM, Alexey Zakhlestin wrote:

Well, yes, that would work. But it is the UI-level solution. I want to
have the constraint deeper, so I wouldn't need to remember to add
formatter in another place, where I would use the binding.

If you don't use a formatter, then the values input from a text field will be strings, not numbers.

If you really want, you could use the relevant KVC validation method, but coercing input values is not recommended (see conceptual doc.).

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >bindings, nested arrays and validation (From: "Alexey Zakhlestin" <email@hidden>)
 >Re: bindings, nested arrays and validation (From: Mike Abdullah <email@hidden>)
 >Re: bindings, nested arrays and validation (From: "Alexey Zakhlestin" <email@hidden>)

  • Prev by Date: Re: NSTextView's "data" binding
  • Next by Date: Re: NSTextView's "data" binding
  • Previous by thread: Re: bindings, nested arrays and validation
  • Next by thread: Re: bindings, nested arrays and validation
  • Index(es):
    • Date
    • Thread