Life is hard for Apple engineers. Long work hours, high demands and little exposure for individual achievement. That's why it constantly amuses devs to find little bits of humanity interspersed among their development tools.
Incept Development's Dimitar Ivanov sent in an email today regarding an exception he encountered. He writes, "Someone at Apple must have been quite irritated when writing exception strings."
Here's the exception in question:
[23877:907] *** -[__NSCFCalendar components:fromDate(): date cannot be nil
I mean really, what do you think that operation is supposed to mean with a nil date?
An exception has been avoided for now.
A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil.
I did a little searching through the CoreFoundation frameworks and confirmed these strings for a variety of errors (components, from dates, to dates, etc.), as well as a few other cute messages like:
*** ERROR: this process has called an NSArray-taking method, such as initWithArray:, and passed in an NSSet object. This is being worked-around for now, but will soon cause you grief.
For the record, my very favorite internal string comes from the MobileDevice framework:
This is not the droid you're looking for (is actually %@). Move along, move along.