Date post: | 15-May-2015 |
Category: |
Technology |
Upload: | cocoaheads-france |
View: | 2,637 times |
Download: | 0 times |
Fail betterCocoaHeads Paris
“Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.”Samuel Beckett
vendredi 12 avril 13
presentError:
vendredi 12 avril 13
Introduced in Mac OS 10.4
vendredi 12 avril 13
-[NSResponder presentError:]
vendredi 12 avril 13
Follows the responder chain
vendredi 12 avril 13
vendredi 12 avril 13
-[NSResponder willPresentError:]
vendredi 12 avril 13
From http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ErrorHandlingCocoa/ErrorHandling/ErrorHandling.html
vendredi 12 avril 13
From http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ErrorHandlingCocoa/ErrorHandling/ErrorHandling.html
vendredi 12 avril 13
Why so cool?
vendredi 12 avril 13
Contextualization!
vendredi 12 avril 13
1. Level of information2. Visual context
vendredi 12 avril 13
1. Level of information“I want errors precise, but still
understandable”
vendredi 12 avril 13
➤ generate precise errors➤ rewrite errors for to the context
vendredi 12 avril 13
2. Visual context“Where did this error occur?”
vendredi 12 avril 13
➤ embedding errors in the UI
vendredi 12 avril 13
vendredi 12 avril 13
vendredi 12 avril 13
Available on UIResponder too !
vendredi 12 avril 13
Available on UIResponder too !
vendredi 12 avril 13
Re-implement!
vendredi 12 avril 13
Demo
vendredi 12 avril 13
Links
github.com/kemenaran/ios-presentErrorgithub.com/hectr/ErrorKit
vendredi 12 avril 13
Thanks
vendredi 12 avril 13