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
- Readdle rolls out PDF Expert 5: iCloud support, shared folder with Documents by Readdle
- FlightTrack 5: new look and features just in time for holiday travel
- HBO Go for iOS update adds Google Chromecast support
- Haiku Deck updates iPad app, launches web-based cloud version
- Weather Underground iPhone app gets crowdsourced weather, iOS 7 style
- Apple updates iMovie, adds support for older Macs