Don't feel so bad Scott, you would have never been burned anyway. Page 413 of
Inside Mac has a warning stating:
"If either the dialog template resource or the item list cannot be read, the function result is undefined."
I have never gotten nil as a result from GetNewDialog. As far as I know, Apple hasn't bothered to fix the call yet. Paranoid programmers (like myself) put
envelope routines around GetNewDialog and Alert. The routine reads in both
the DITL and DLOG (or ALRT) resource and makes sure they're non-purgeable.
Then it calls GetNewDialog. Window centering code that observes the system 7 flags under systm 6 can be inserted here as well.
Anybody out there know why apple likes to make our lives just a bit more interesting by not retuning error codes for the above routines and being so wierd about
GetResource ? It really pisses me off.
Hat to ramble, but my newsposter won't allow me to type less than I quote.