On 12/7/09 2:32 PM, Sissy said:

>
>>
>> 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];

Sissy,

NSInteger is just a typedef and it's only used in the 10.5 and later
SDKs.  But you can use the 10.5 SDK and still support 10.4.  You just
need to change your deployment target to 10.4.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

Reply via email to