• 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
NSCalendarDate bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSCalendarDate bug?
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: NSCalendarDate bug?
      • From: cricket <email@hidden>
  • Prev by Date: Re: AirPort Net Detection and Mon Power off
  • Next by Date: Re: General can I do this with a table view question
  • Previous by thread: Re: PackageMaker - upgrading a renamed application?
  • Next by thread: Re: NSCalendarDate bug?
  • Index(es):
    • Date
    • Thread