Added success/error to Objective-C implementation.

Added success/error result to Objective-C implementation as well.