Wrapper for handling iOS SDK APIs that take in error by reference.

Some of the benefits:

  • Simplified handling of methods that take in NSErrorPoint.
  • No more declaring that pesky NSError variable to pass by reference (use $0 shorthand argument name in closure passed to the wrapper).
  • Chaining handlers for success and failure.
  • Streamlined downcasting handling (needed because often the result of those methods is AnyObject? instance).

Check out NSErrorPointerWrapper on GitHub.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">