Using NSValueTransformer with a double
Using NSValueTransformer with a double
- Subject: Using NSValueTransformer with a double
- From: Paul Bruneau <email@hidden>
- Date: Wed, 10 Oct 2007 10:12:49 -0400
Hi-
I have an object with an instance variable of type NSTimeInterval
which as you know is actually just a double containing number of
seconds.
I would like to bind this ivar to an NSTextField on my interface
which works fine, except that it displays in seconds of course. I
want the user to experience this value in minutes.
So I look at NSValueTransformer which seems to be made exactly for
this type of thing.
But to my newb eyes it seems to only want to transform objects (I
could be wrong).
Am I wrong, or should I do something like store my NSTimeInterval as
an NSNumber in my object and redo minimal code to make my other stuff
work with it?
I thank you
_______________________________________________
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