views:

405

answers:

2

I want to use NSCalendarDate, which exists in

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/ System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSCalendarDate.h

but is not present anywhere under

/Developer/Platforms/iPhoneOS.platform

What gives?

A: 

I only see NSCalendar referenced in the API docs. I would bet this is either unpublished (and therefore unsupported) or deprecated.

MystikSpiral
+4  A: 

After 10.5 NSCalendarDate will be deprecated. Thus it likely just doesn't exist in iPhone SDK:

Important: Use of NSCalendarDate strongly discouraged. It is not deprecated yet, however it may be in the next major OS release after Mac OS X v10.5. For calendrical calculations, you should use suitable combinations of NSCalendar, NSDate, and NSDateComponents, as described in Calendars in Date and Time Programming Guide for Cocoa.

Look for the iPhone versions of NSCalendar, NSDate and NSDateComponents

Jared Oberhaus