• 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
Re: NSCalendar: does the thing work at all? Or am I just blind?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCalendar: does the thing work at all? Or am I just blind?


  • Subject: Re: NSCalendar: does the thing work at all? Or am I just blind?
  • From: Chris Kane <email@hidden>
  • Date: Thu, 26 May 2005 13:47:51 -0700


On May 24, 2005, at 3:23 PM, Ondra Cada wrote:

just have tried NSCalendar... perhaps I don't understand something in a very serious way, but WTH?!?
[...]
comps=[gc components:NSYearCalendarUnit|NSMonthCalendarUnit| NSDayCalendarUnit fromDate:date];
NSLog(@"Looks bad: %d-%d-%d",[comps year],[comps month],[comps day]);

This is a known bug found too late to fix for 10.4's release, in the

- components:fromDate:
- components:fromDate:toDate:options:

methods. The computations done by CFCalendar are fine if you want to switch to the equivalent APIs, but the uses of them in NSCalendar have the most annoying tiny "boo boo". Hopefully a software update will come out in which this can be fixed.


Chris Kane Cocoa Frameworks, Apple

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSCalendar: does the thing work at all? Or am I just blind? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Accessing NSTableView cell information
  • Next by Date: Re: reordering NSTableView elements
  • Previous by thread: NSCalendar: does the thing work at all? Or am I just blind?
  • Next by thread: Re: NSTreeController / CoreData question [Solved]
  • Index(es):
    • Date
    • Thread