Re: Time Question (newbie)
Re: Time Question (newbie)
- Subject: Re: Time Question (newbie)
- From: Tom Gray <email@hidden>
- Date: Mon, 20 Jan 2003 08:50:32 -0500
David,
Ahh... doesn't: timeIntervalSinceDate return an NSTimeInterval (a
double)? So you are retaining and returning not an object, but a
double. I haven't compiled this (I will in a bit) but I don't think it
will run. An NSDate isn't the same as an NSTimeInterval, or, is it?
On Sunday, Jan 19, 2003, at 22:43 US/Eastern, David Cairns wrote:
you could actually create your _own_ function to do this:
- (NSDate)TimeIntervalBetween:(NSDate *)firstDate andDate:(NSDate
*)secondDate
{
return [[secondDate timeIntervalSinceDate: firstDate] retain];
}
(im more or less a n00B too, so someone let me know if im just off my
rocker...)
-- dave
--------------------------------------------
"see you later, space cowboy..."
--------------------------------------------
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.