what is the sense of this if there is no return value? (void) years:months:days:hours:minutes:seconds:sinceDate:
Note the signature is:
- (void) years: (int*)years
months: (int*)months
days: (int*)days
hours: (int*)hours
minutes: (int*)minutes
seconds: (int*)seconds
sinceDate: (NSDate*)date;The values those int pointers are pointing to will be set.
i.e.
{
int years = 0;
int months = 0;
int day = 0;
int hours = 0;
int minutes = 0;
int seconds = 0; [date1 years: &years
months: &months
days: &days
hours: &hours
minutes: &minutes
seconds: &seconds
sinceDate: date2]; NSLog(@"years: %d months: %d days: %d "
@"hours: %d minutes: %d seconds: %d ",
years, months, days, hours, minutes, seconds);
}Cheers, David
also see: http://www.gnustep.org/resources/documentation/base/NSCalendarDate.html#method$NSCalendarDate(OPENSTEP)-years:months:days:hours:minutes:seconds:sinceDate:
_______________________________________________ Help-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-gnustep
