• 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: Question about laterDate: and earlierDate:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about laterDate: and earlierDate:


  • Subject: Re: Question about laterDate: and earlierDate:
  • From: Paul Bruneau <email@hidden>
  • Date: Tue, 16 Oct 2007 11:48:01 -0400

On Oct 16, 2007, at 11:10 AM, Mike Abdullah wrote:

You get basically the same behaviour with NSArray. e.g.

- (NSArray *)objectsAtIndexes:(NSIndexSet *)indexes

It's just not normally an issue since you don't generally care about getting back a mutable array specifically.

I understand now, thank you.

Well the localization issue is simply that NSCalendarDate only supports the Gregorian calendar. NSCalendar works by splitting that localization-specific code out into a separate class so you can support multiple calendars. One other good reason is that Core Data will only store NSDates, not NSCalendarDates.

OK I just deleted the word "Calendar" everywhere it appeared in my code and it runs great so I guess I wasn't that in love with NSCalendarDate after all. I just had to change one method to a slightly different one in a few areas. Nearly rhetorically, I ask: Is it expected that Apple is going to deprecate NSCalendarDate?


Thanks for the nudge. I'm trying to do things the Right Way™_______________________________________________

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: Question about laterDate: and earlierDate:
      • From: Mike Abdullah <email@hidden>
References: 
 >Question about laterDate: and earlierDate: (From: Paul Bruneau <email@hidden>)
 >Re: Question about laterDate: and earlierDate: (From: Mike Abdullah <email@hidden>)
 >Re: Question about laterDate: and earlierDate: (From: Paul Bruneau <email@hidden>)
 >Re: Question about laterDate: and earlierDate: (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Question about laterDate: and earlierDate:
  • Next by Date: warning: assignment makes integer from pointer without a cast
  • Previous by thread: Re: Question about laterDate: and earlierDate:
  • Next by thread: Re: Question about laterDate: and earlierDate:
  • Index(es):
    • Date
    • Thread