• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fwd: nscalendardate with 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: nscalendardate with 10.4


  • Subject: Re: Fwd: nscalendardate with 10.4
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 8 Dec 2009 18:50:30 -0500
  • Organization: Rogue Research Inc.

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                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >Fwd: nscalendardate with 10.4 (From: Sissy <email@hidden>)

  • Prev by Date: Re: Improving speed of NSCollectionView scrolling
  • Next by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Previous by thread: Re: nscalendardate with 10.4
  • Next by thread: odd problems with NSData / OpenGL
  • Index(es):
    • Date
    • Thread