Another Bug
By now you know that when I say something like “if all has gone well,” the app will crash. And so it has: The Debug navigator shows a trace back through an exception handler, and the console says
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSDictionary initWithObjects:forKeys:]: count of objects (1) differs from count of keys (12)'
followed by a stack trace that last touched your code at -[SimpleCSVFile run:error:]
. It would be nice to see what was going on in run:error:
, but after the app ran through the exception handler, that information was lost. It would be nice if it weren’t.
Note
An exception is a signal by program code—your own or in the ...
Get Xcode 5 Start to Finish: iOS and OS X Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.