Category Archives: UI

Sneaky Bastard version 0.1

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]; [...]

Also posted in nib | Leave a comment

NSTask: executing an external application from Cocoa

While still not getting any breakthrough to the camera capture issue, I decided that I may need some surveillance feature for my machine right now. If I can’t make Cocoa to do it for me then I’ll just have to use 3rd party application. I found a commandline tool called iSightCapture. It’s light, and does [...]

Also posted in cocoa, source code | Leave a comment