Re: NSCalendarDate bug?
Re: NSCalendarDate bug?
- Subject: Re: NSCalendarDate bug?
- From: "Alastair J.Houghton" <email@hidden>
- Date: Thu, 2 Oct 2003 18:57:50 +0100
On Thursday, October 2, 2003, at 06:13 pm, Lorenzo Thurman wrote:
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?
Not necessarily. One reason that things like this sometimes happen is
that the code generated by the compiler doesn't correspond exactly to
what you have written; the most common cause of this is that you have
the optimiser enabled, as that can make really quite radical
alterations to your code under some circumstances, but there are other
things that can cause it too (for example, if the compiler allocates a
register to more than one variable during the execution of your
function, or if you examine a variable before it has actually been
initialised).
So it probably isn't a bug. BTW, debuggers on most platforms exhibit
these sort of oddities, although their frequency is very dependent on
the platform's architecture.
Kind regards,
Alastair.
_______________________________________________
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.