Weekly Cocoa app challenge #3 solution

2007-01-18 02:04:39 -08:00

HERE THERE BE SPOILERS. If you intend to participate in the challenge, read no further because my solution follows.

DudeMenu-PRH-1.0-source.tbz

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

2 Responses to “Weekly Cocoa app challenge #3 solution”

  1. nico Says:

    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

  2. Peter Hosey Says:

    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.

Leave a Reply

Do not delete the second sentence.