• 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 and NSNumberFormatter, enforcing min/max values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings and NSNumberFormatter, enforcing min/max values


  • Subject: Re: bindings and NSNumberFormatter, enforcing min/max values
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 16 Sep 2010 21:52:38 -0500

On Sep 16, 2010, at 5:06 PM, Quincey Morris wrote:

> Regarding NSUserDefaults, I don't see anything in the documentation that claims KVC compliance for NSUserDefaults, though I could easily have missed it.

You're not supposed to bind to the shared NSUserDefaults instance.  There's a separate class, NSUserDefaultController, which was specifically introduced for KVO and binding.  This is what IB offers as one of the built-in bindings targets (Shared User Defaults Controller).

So, I suspect the category is on the wrong class.

Regards,
Ken

_______________________________________________

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: bindings and NSNumberFormatter, enforcing min/max values
      • From: Martin Wierschin <email@hidden>
References: 
 >bindings and NSNumberFormatter, enforcing min/max values (From: Martin Wierschin <email@hidden>)
 >Re: bindings and NSNumberFormatter, enforcing min/max values (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Why is NSPopUp broken in drop-down mode?
  • Next by Date: Re: Scripting Bridge Strange Pauses
  • Previous by thread: Re: bindings and NSNumberFormatter, enforcing min/max values
  • Next by thread: Re: bindings and NSNumberFormatter, enforcing min/max values
  • Index(es):
    • Date
    • Thread