DevJuice: Apple exception snarks
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.
Life is hard for Apple engineers. Long work hours, high demands and little exposure for individual achievement. That's why it constantly...
Subscribe to Newsletter
Software Updatesmore updates
- Daily App: MyScript Calculator solves your hand-written math equations
- Findery app lets you discover the world around you using annotated notes and maps
- The Learnist app brings its crowd-sourced collection of information to your iPhone
- My cat Cinnamon reviews Friskies Cat Fishing 2
- Photo Grid Collage Maker is capable and free
- iExit gets new features and is now free