Hi,
Alessandro Sangiuliano wrote:
NSRange range = [gregorian rangeOfUnit:NSDayCalendarUnit
inUnit:NSMonthCalendarUnit forDate: [gregorian
dateFromComponents:components]];
monthDays = range.length;
NSLog(@"Numbers of Days %ld", monthDays);
From the NSLog I can see that monthDays is "0", insted on OS X is 28
(for february, 31 for Jan, and so on). What I wrong?
Have you checked out the components? e.g. is "gregorian" valid? components?
Can you split this code up in a small example that can be run from the
command line? so I can compare how it works on 10.6 and 10.4 for example
and see if it works on GNUstep, debug, etc etc.
Riccardo
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep