My first attempt at using Objective-C for something useful has produced Punch Clock, a simple application that one might use to record one’s activities for personal time management or later entry in a time-tracking system or timesheet.
While it is, as an application, little more than a skeleton of a prototype, it has enough useful functionality to give a flavour of Cocoa development in Objective-C. It features:
- post-launch application initialisation through the use of a
NSApplicationdelegate - an editable
NSTableView - programmatic edits of a table cell
NSButtons that are enabled and disabled according to the state of the application
Those not completely disinterested can browse the source. It is hosted by Bitbucket as a Mercurial repository; retrieve it using:
hg clone http://bitbucket.org/sinistral/punchclock
0 Responses to “punch clock: an introduction to objective-c”