NSCalendarDate bug?
NSCalendarDate bug?
- Subject: NSCalendarDate bug?
- From: Lorenzo Thurman <email@hidden>
- Date: Thu, 2 Oct 2003 12:13:19 -0500
I've noticed an odd problem with NSCalendarDate. Here's some code:
NSCalendarDate* today;
NSCalendarDate* tomorrow;
today = [NSCalendarDate calendarDate];
tomorrow = [NSCalendarDate calendarDate];
if([today isEqual:tomorrow])
NSLog(@"Yep");
If when stepping through the code in the debugger I "Print Description
to Console" for the variable tomorrow, I get this:
2003-10-02 12:06:15 -0500
But the variable today shows this:
<NSApplication: 0xdb0b0>
So of course the comparison fails. What gives? Also, I noticed that
when I reach these variables in the debugger and try to step over them,
the debugger highlighting jumps back the beginning of the function. It
will do this three times before proceeding to the next statement each
time I click on step over. Are these both bugs?
_______________________________________________
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.