Fwd: nscalendardate with 10.4
Fwd: nscalendardate with 10.4
- Subject: Fwd: nscalendardate with 10.4
- From: Sissy <email@hidden>
- Date: Mon, 07 Dec 2009 14:32:51 -1000
i've complete my project which runs great on 10.5 leopard and i am
trying to compile it to work with 10.4 (tiger). i use
nscalendardate which uses nsinteger which does not exist in 10.4.
how do i adjust dates using nscalendardate which is supposed to work
with 10.0 and later without having the use of nsinteger which only
works on 10.5 and later.
- (NSCalendarDate *)dateByAddingYears:(NSInteger)year months:
(NSInteger)month days:(NSInteger)day hours:(NSInteger)hourminutes:
(NSInteger)minute seconds:(NSInteger)second
my code:
// NSInteger counter = [selectDate dayOfWeek];
int counter = [selectDate dayOfWeek];
// NSLog(@"dates are picker %@ and calendar %@ and counter is
%i",theDate,selectDate,counter);
NSCalendarDate *tempDate = [selectDate dateByAddingYears:0 months:0
days: -counter hours:0 minutes:0 seconds:0];
thanks for your time, sissy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden