• 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
Fwd: nscalendardate with 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Fwd: nscalendardate with 10.4
      • From: "Sean McBride" <email@hidden>
    • Re: nscalendardate with 10.4
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: IKImageBrowserView image quality changing with redraw
  • Next by Date: Re: nscalendardate with 10.4
  • Previous by thread: Re: IKImageBrowserView image quality changing with redraw
  • Next by thread: Re: nscalendardate with 10.4
  • Index(es):
    • Date
    • Thread