• 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
Using NSValueTransformer with a double
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Using NSValueTransformer with a double
      • From: Hank Heijink <email@hidden>
  • Prev by Date: NSAutoreleasePool and static data member constructors
  • Next by Date: Re: NSAutoreleasePool and static data member constructors
  • Previous by thread: Re: NSAutoreleasePool and static data member constructors
  • Next by thread: Re: Using NSValueTransformer with a double
  • Index(es):
    • Date
    • Thread