I code defensively, and in this case all my event handlers check for
class and kind, and signature and ID where appropriate. (And I use
asserts when things don't match, like in the default of switch on
event kind for example -- makes it easy to find errors that way).
<AOL>Me too!</AOL>
More seriously, I write programs that tell me when things are wrong -
as early as possible.
I'm not a big fan of XP (choose your expansion of the acronym ;-)),
but unit tests and asserts
are some of the more powerful tools in my bag.
Too bad I don't have a good, general way to test event handlers :-(
--
-- Marshall
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden