• 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
NSDateFormatter problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDateFormatter problem


  • Subject: NSDateFormatter problem
  • From: Michael Anckaert <email@hidden>
  • Date: Mon, 6 Mar 2006 09:05:27 +0100

Hello all!

I'm new to this list, so first of all Hi! :)

I'm having a problem with the NSDateFormatter. I have this formatter attached to an NSTableView column.
The formatter is set to %H:%M:%S format.
In my code I calculate an NSTimeInterval (the interval between 2 NSDate objects). I set the NSTimeInterval to
an object that is contained in an NSArrayController which displays the data in the NSTableView.
Nothing special here.


But when I calculate the NSTimeInterval and it's for example 23 seconds, the NSDateFormatter will display 01:00:23
instead of 00:00:23. Every value that I 'send' to the NSDateFormatter get 'increased' by one hour.


Does anyone has an idea where I made an error?

Little overview to make this clearer:
NSTableView -> NSArrayController -> CustomClass
NSTableView has an NSDateFormatter attached
I set the NSTimeInterval with [CustomClass setIntervalTime:interval];

With kind regards,
Michael Anckaert
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Issues with NSTextView and undoing attributes - Solved (I think)
  • Next by Date: Re: NSOpenPanel icon view
  • Previous by thread: Re: Issues with NSTextView and undoing attributes - Solved (I think)
  • Next by thread: error when calling CGImageSourceCreateThumbnailAtIndex
  • Index(es):
    • Date
    • Thread