NSDate (Helper) Updated

2009-08-06 20:00:00 -0400


We’ve got a small category extending the NSDate class found in Cocoa with some really convenient methods that allow us to work with date objects without cluttering up our code with NSCalendar and NSComponent objects and operations. If you’ve ever had to do date manipulation or formatting in Java, I can tell you that it’s as much a nuisance in Objective-C, too.

In any event, I finally got around to putting up a proper description of each method, and added a new instance method, weekday, which gives you the day of the week for an NSDate, 0 – 6 (0 being Sunday).

Zetetic is the creator of the encrypted iPhone data vault and password manager Strip and the open source encryption-enhanced database engine SQLCipher.

blog comments powered by Disqus