• 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: NSValueTransformer problem with NSTextField update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSValueTransformer problem with NSTextField update


  • Subject: Re: NSValueTransformer problem with NSTextField update
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 1 Oct 2009 14:34:07 -0700

On Oct 1, 2009, at 13:38, Paul Bruneau wrote:

That scenario does sound very similar to mine.

I'd forgotten, in my application I simplified the user interface because of various validation difficulties (maybe including bindings issues, I don't remember), so all I've got left is a sheet with text fields bound to integer values through a transformer, with a validation method on each property that validates but doesn't reformat. Under Snow Leopard, I see the same behavior of the text field not refreshing through the value transformer at the end of editing.


In a different project, I chose to keep the underlying value as a string, and in that case the validation method *does* prettify, and that seems to work perfectly.

So, while a bug report demonstrating the observed behavior (KVO notification not triggering updating of the text field via the value transformer) might be useful to find out if it's "behaving as intended", you're probably going to have to code around it for now, such as with the mediating string property approach.


_______________________________________________

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


References: 
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: "I. Savant" <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: "I. Savant" <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: "I. Savant" <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Quincey Morris <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: "I. Savant" <email@hidden>)
 >Re: NSValueTransformer problem with NSTextField update (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: CoreAnimation: image is too large
  • Next by Date: very newbie question
  • Previous by thread: Re: NSValueTransformer problem with NSTextField update
  • Next by thread: Re: NSValueTransformer problem with NSTextField update
  • Index(es):
    • Date
    • Thread