Programming Mac OS X with Cocoa for Beginners/Adding finesse
From Wikibooks, open books for an open world < Programming Mac
OS X with Cocoa for Beginners Jump to: navigation, search
Previous Page: Archiving  So far we have built a fairly crude
drawing program, but one that is starting to look like a real
application. We have covered many of the core principles of
Cocoa that you'll need to write any application. If you look at
how much code we've actually written, it's not that much, yet
our application is already quite functional. In this section,
we'll look at adding finesse - those touches that separate real,
well-designed and implemented applications from those lesser
amateur efforts we've no doubt all seen.   The first thing to
tackle is Undo. A real application should allow almost all
actions to be undoable, in the spirit of forgiveness of the
user. Without Undo, your application is likely to be discarded
in favour of another one that has it, as punishing the user for
mistakes, or not allowing them to