This compiler warning " 'NSDate' may not respond to
'+dateWithTimeInterval:sinceDate:' "is driving me up the wall.

I don't understand why I am getting the warning because, by all indications,
+dateWithTimeInterval:sinceDate: has not been deprecated.

I would be extremely grateful for any insight.


Here's my code:

    NSDate *dateWithoutHundredths;

    dateWithoutHundredths = [NSDate dateWithString:[NSString
stringWithFormat:@"%04d-%02d-%02d %02d:%02d:%02d +0000", year, month, day,
hour, minutes, seconds]];

    NSTimeInterval hundredthsToAdd = (double)(hundredth / 100.0);

    date = [NSDate dateWithTimeInterval:hundredthsToAdd
sinceDate:dateWithoutHundredths]; //This is the line the warning shows up on
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to