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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to