Myriad

Archive for Lexicon

NSInvocation in Practice

Tuesday, June 27th, 2006

There’ve been quite a few mentions of NSInvocation recently. I have to agree about how useful it can be, and wanted to mention a few specific places I used it in Lexicon.

(more…)

(Un)doing the Impossible

Friday, June 16th, 2006

Undo is always nice for users, but can be hard for developers. Luckily, this is made easier in Cocoa by NSUndoManager and its prepareWithInvocationTarget method (NSInvocation is great). With this technique, you can just store one method call for the undo reversal. But it’s common to have actions that affect files-and these aren’t as easy to undo. I ran into this in Lexicon for managing LanguageSyncs, which are like dictionary files that are available in many different languages.

(more…)

Dynamic Sparkle Release Notes

Monday, May 29th, 2006

By now I’m sure all Mac OS X developers have heard of Sparkle - the excellent auto-updating framework by Andy Matuschak. When I added Sparkle to Lexicon, I only ran into one problem. The release notes that Sparkle displays are decided by what version you are updating to, but they should depend only on what version you are updating from.

(more…)