On 2013-03-19, at 3:59 PM, Kyle Sluder wrote:

> On Mar 19, 2013, at 6:21 AM, Izak van Langevelde <eezac...@xs4all.nl> wrote:
> 
>> I'm working on a small week-based calendar, but for some reason, the week 
>> number within the month of the first day of the month is either 0 or 1, 
>> while I would expect it to be 1.
> 
> Haven't confirmed it for all the values you've shown, but I believe it is 
> returning 0 in instances where the week in which the date falls has fewer 
> than the calendar's minimumDaysInFirstWeek in the specified month.
> 

This appears to be correct: minimumDaysInFirstWeek was 4; setting it to 1 makes 
all months start with week number 1.
It might be a triviality, but what System Preferences affects this?

Thanks,
Izak

---
Grinnikend door het leven...


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to