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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com