Hey guys,

Please ignore my post. It's been a long day and I had one very bad return value 
in one of my value transformers. It always helps to take a break and return to 
the problem with a fresh perspective!

Kiel

On 27/10/2010, at 3:45 PM, Kiel Gillard wrote:

> Hi all,
> 
> Can you please look at this very small and rough reproduction of my problem 
> <http://dl.dropbox.com/u/1064994/cocoadev%20bindings.zip>.
> 
> I want to present measured values of my model with respect to the user's 
> locale. For example, I want to present a distance in imperial units of 
> measurement instead of metric. I am using NSValueTransformer subclasses to 
> transform the units of my model into imperial or metric units.
> 
> When I receive a notification indicating the user's measurement locale 
> changes in System Preferences, my code unbinds and re-binds the value binding 
> of a text field to an instance variable of the controller. I provide the 
> appropriate value transformer in the options of the binding.
> 
> I was wondering if you could please help me with my problem. My NSTextField 
> object is not editable when the change in system locale causes the text field 
> to use a value transformer different from the initial. Specifically, the 
> binding is configured in Interface Builder to use the metric value 
> transformer but when I use System Preferences to adjust my locale preferences 
> to use an imperial (U.S.) system, my text field becomes unchangeable. 
> Adjusting the locale preferences to use a metric system re-enables my text 
> field for editing.
> 
> Any thoughts, comments or suggestions would be extremely helpful and 
> appreciated!
> 
> Kiel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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