• 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
Bug: Availability bindings on NSTextView cause attached NSNumberFormatter to fail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug: Availability bindings on NSTextView cause attached NSNumberFormatter to fail


  • Subject: Bug: Availability bindings on NSTextView cause attached NSNumberFormatter to fail
  • From: Peter <email@hidden>
  • Date: Fri, 10 Jan 2014 10:10:46 +0100

This cost me a couple of hours of sleep.

OS 10.9.1, Xcode 5.0.2

In my app I have an NSTextView with an NSNumberFormatter attached to it. The latter limits input to integers of a specified range.

As soon as bind the NSTextView’s enabled or editable properties to a simple boolean property in my controller (no other bindings in place), the number formatter no longer honors the range constraints and lets values pass unfiltered.

Without bindings, the system beeps when trying to enter a prohibited value.
With bindings, range constraints are ignored while non-integer input is blocked, but without the system beep.

Changing SDKs, setting the number formatter up in code, binding to the encapsulated NSTextViewCell etc. do not fix the issue.

Has anybody seen this?
I have searched radars but could not find anything.

I have a bare bones project exhibiting this bug 100% deterministically, which I could send to interested parties (or upload to GitHub).
I have never done that before, but I intend to file a radar, unless somebody finds a fundamental flaw in my setup.

Thanks!

Peter
_______________________________________________

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


  • Prev by Date: Re: Help to debug NSPerformService..
  • Next by Date: Corrected: Bug: Availability bindings on NSTextField cause attached NSNumberFormatter to fail
  • Previous by thread: Re: Validation of fields in a navigation stack
  • Next by thread: Corrected: Bug: Availability bindings on NSTextField cause attached NSNumberFormatter to fail
  • Index(es):
    • Date
    • Thread