Weekly Cocoa app challenge #3 solution
HERE THERE BE SPOILERS. If you intend to participate in the challenge, read no further because my solution follows.
Source and executable are both included. It took me about an hour and 19 minutes to complete. Source-control-wise, this is revision 7 of its SVN repository.
Things used therein:
- Acquisition of and intake from a plist
- Definition of custom symbols for the auto-documentation of dictionary keys
- Dynamically building a menu
- Validation of input, both with alerts and assertions
- Many, many comments
- String localization
- String localization using a custom table
- Primitive token-replacement (primitive because there is no provision for escaping)
- Inspection of the current locale
- A status item
- Menu items representing other objects
- An app without a main menu (as in NSApp’s mainMenu)
- LSUIElement
- A menu item that messages NSApp directly
- Retrieval of images from the search path by name
- Walking arrays
- Auto-incrementation
January 18th, 2007 at 15:05:53
now, that’s overkill. i stopped after localization of the tool tip and the menu ;-)
oh, you might check out http://damienkatz.net/2007/01/negative_captch.html …
January 18th, 2007 at 15:24:04
I saw the Negative CAPTCHA thing on Reddit. I have the beginnings of a blog post in a clipping on my desktop. The executive summary is that it’s a neat idea, but not foolproof.