On 23/10/2009, at 2:06 PM, PCWiz wrote:

NSLog(@"%d", [time timeIntervalSinceNow]);

And the result is this:

2009-10-22 21:01:18.949 TestApplication[8263:a0f] -2097072

Not sure what's wrong here, I've taken a look at some examples and they seem to do the same thing.


[NSDate timeIntervalSinceNow]. What does it return?

Now what is that type an alias of?

And what format string specifier would you need to log it?

--Graham


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to