• 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: "Alexey Zakhlestin" <email@hidden>
  • Date: Mon, 30 Apr 2007 01:16:36 +0400

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.

On 4/30/07, Mike Abdullah <email@hidden> wrote:
You want an NSNumberFormatter attached to the field then.

Mike.

On 29 Apr 2007, at 21:12, Alexey Zakhlestin wrote:

> Hi cocoa-dev
>
> I am implementing the UI which has a 1-columnt table on the left bound
> to the specific key of Shared User Defaults. On the right it has
> several text inputs which are bound to the selected element of the
> table
>
> I used this as an example and it works fine:
> http://www.cocoabuilder.com/archive/message/2004/11/6/120927
>
> But, now I want to add the constraint to one of text inputs: it should
> be numeric-only. I would prefer to have it done using bindings-level,
> if possible. (I know I can do that by inheriting nstextfield, but that
> doesn't sound like a good idea)
>
> -- Alexey Zakhlestin
> http://blog.milkfarmsoft.com/
> _______________________________________________
>
> 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:
> 40mikeabdullah.net
>
> This email sent to email@hidden




--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
_______________________________________________

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


  • Follow-Ups:
    • Re: bindings, nested arrays and validation
      • From: mmalc crawford <email@hidden>
References: 
 >bindings, nested arrays and validation (From: "Alexey Zakhlestin" <email@hidden>)
 >Re: bindings, nested arrays and validation (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: bindings, nested arrays and validation
  • Next by Date: Re: NSTask vs. special characters
  • Previous by thread: Re: bindings, nested arrays and validation
  • Next by thread: Re: bindings, nested arrays and validation
  • Index(es):
    • Date
    • Thread