Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the signature of a window



At 1:38 PM -0600 1/31/05, Bryan Pietrzak wrote:
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

Marshall Clow     Idio Software   <mailto:email@hidden>

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

This email sent to email@hidden
References: 
 >Re: Changing the signature of a window (From: Laurence Harris <email@hidden>)
 >Re: Changing the signature of a window (From: Mike Lazear <email@hidden>)
 >Re: Changing the signature of a window (From: Bryan Pietrzak <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.