I am using a third party library and make a call to one of its functions like this.
NSError* error = nil;
self.updatedDocument.bookmarkParser.bookmarks = newBookmarks;
//save the document
[self.updatedDocument.bookmarkParser saveBookmarksWithError:&error];
[self.updatedDocument saveAnnotationsWithError:&error];
The third party apis .h file looks like this.
/// Saves the bookmark into a plist file at bookmarkPath.
/// @note Saving is done async.
- (BOOL)saveBookmarksWithError:(NSError *__autoreleasing*)error;
I am not sure if I am correctly using this NSError pointer as I am not sure what *__autoreleasing does. Thanks for your help.