Used NSDate to add current date to image filename. Working with Dates in Cocoa is straightforward. I just used the NSDateFormatter to customize the output. This is how I implemented it using a MMddYY_HHmmss format: 12345NSDate *now = [NSDate date]; NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@"MMddYY_HHmmss"]; NSString* formattedDateString; formattedDateString = [formatter stringFromDate:now]; [...]
-
Recent Posts
Archives
- August 2011 (1)
- July 2011 (1)
- May 2011 (1)
- October 2010 (1)
- May 2010 (1)
- April 2010 (2)
- March 2010 (1)
- February 2010 (1)
- January 2010 (2)
- November 2009 (1)
- October 2009 (6)
- September 2009 (12)
- August 2009 (5)