I am attempting to pass an error pointer in swift and am unable to do so. The compiler complains that \"NSError is not convertible to \'NSErrorPointer\'\".
This suggestion is up for discussion, but some engineers would prefer to use the golden path syntax:
var maybeError: NSError?
if let results = context.executeFetchRequest(request, error: &maybeError) {
// Work with results
} else if let error = maybeError {
// Handle the error
}