Permalink
Browse files

document is immutable

  • Loading branch information...
steipete committed Mar 4, 2014
1 parent 585442d commit 269a4236aa5fefd08249f642632ad32da7fb09c7
Showing with 1 addition and 1 deletion.
  1. +1 −1 Examples/PSPDFCatalog/Annotations/PSCSaveAsPDFExample.m
@@ -134,7 +134,7 @@ - (void)askUserAboutSaveLocation {
NSLog(@"Failed to move file: %@", error.localizedDescription); return;
}
// Finally update the fileURL, this will clear the current document cache.
- self.document.fileURL = newURL;
+ self.document = [PSPDFDocument documentWithURL:newURL];
}
}];
#pragma clang diagnostic pop

0 comments on commit 269a423

Please sign in to comment.