• 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: Paul Bruneau <email@hidden>
  • Date: Thu, 1 Oct 2009 13:02:25 -0400

On Oct 1, 2009, at 11:10 AM, I. Savant wrote:

On Oct 1, 2009, at 10:58 AM, Paul Bruneau wrote:

Thanks for the suggestion, IS. I had in fact tried those and I tried them again just now (in all combinations), no change.

Hmmm ... This (figure 2):

http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/CocoaBindings/Concepts/MessageFlow.html#/ /apple_ref/doc/uid/TP40002149

... seems to make no promise that anything in the view will be changed / updated in this scenario, regardless of a transformer.

Well if you look at Figure 2, step #23, it says "Updated value now stored in model object. Key-value observing notifications are sent to observers of this model property."


So due to the binding, the text field would get updated by this mechanism, wouldn't it?

And promise or no, it is occurring in the table view...it's mysterious.

This seems more like a job for an NSFormatter ...

I am pretty ignorant of the differences, but in converting from a fraction to a number of 32nds, I picked NSValueTransformer. It does work great :) I'm just seeing this inconsistency between cells in a table, and text fields in a window.


Thanks again, still listening
_______________________________________________

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: NSValueTransformer problem with NSTextField update
      • From: "I. Savant" <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>)

  • Prev by Date: Re: NSValueTransformer problem with NSTextField update
  • Next by Date: Address Book-style editing
  • Previous by thread: Re: NSValueTransformer problem with NSTextField update
  • Next by thread: Re: NSValueTransformer problem with NSTextField update
  • Index(es):
    • Date
    • Thread