• 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
Re: Time Question (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Time Question (newbie)
  • Next by Date: Re: Examples of applications developed with Cocoa?
  • Previous by thread: Re: Time Question (newbie)
  • Next by thread: Setting tooltip delay?
  • Index(es):
    • Date
    • Thread