Cocoa categories to extend NSDate and NSCalendarDate, including accessing and setting the date and time parts separately.
This code is compatible with Mac OS X 10.3 and later. Much of it dates from the pre-bindings etc days, so there may be better ways to do things now, but hopefully you will find some of these useful.
If you use them, I'd appreciate mention in your application credits or website, and let me know! If you have any improvements or bug fixes, I'd appreciate them, too.
Click on the .h and .m attachments to view the source code, or the .zip file to download them. Note: you can download all of the categories in one archive via the DSCategories page.
| Attachment | Size |
|---|---|
| DSDateCategories.h | 2.04 KB |
| DSDateCategories.m | 8.29 KB |
| DSDateCategories.zip | 3.55 KB |






Recent comments
3 hours 8 min ago
4 hours 38 min ago
5 hours 40 min ago
2 days 4 hours ago
2 days 10 hours ago
2 days 4 hours ago
3 days 5 min ago
3 days 9 hours ago
3 days 10 hours ago
3 days 11 hours ago