NSDateFormatter problem
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