Ok - it looks silly to discuss too much about this anyway (with all the
pending stuff) but I can't avoid another one on this :-)
I don't understand why you are assuming that +stringWithContentsOfFile
returning nil is an error. The caller will assess that. In the case of
NSSavePanel, for example, it's a perfectly valid condition.
<pedantic>Technically a nil return here indicates a failure ... an
error. I'ts up to the caller to decide how to deal with that, not to
decide whether it's a failure or not.</pedantic>
<pedantic>An 'error', for the programmer using the base library, is when
the base library generates an exception. Anything else is not an error.
A nil return here indicates that the file doesn't exist, is not readable
or can't be read. This is considered a valid result, otherwise the API
would have required an exception - with the name and reason of the error -
to be raised.</pedantic>