Skip to content

Commit

Permalink
hide log
Browse files Browse the repository at this point in the history
  • Loading branch information
steipete committed Mar 4, 2014
1 parent 269a423 commit b41d197
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -41,7 +41,7 @@ - (id)initWithDocument:(PSPDFDocument *)document {
// Further you don't have to call reloadData after saving - this is done for testing the saving (since annotations that are not saved would disappear)
// If you want immediate saving after creating annotations either hook onto PSPDFAnnotationsAddedNotification and PSPDFAnnotationChangedNotification or set saveAfterToolbarHiding to YES in PSPDFAnnotationToolbar (this will not be the same, but most of the time good enough).
- (void)saveAnnotations {
NSLog(@"Annotations before saving: %@", [self.document annotationsForPage:0 type:PSPDFAnnotationTypeAll]);
//NSLog(@"Annotations before saving: %@", [self.document annotationsForPage:0 type:PSPDFAnnotationTypeAll]);

NSDictionary *dirtyAnnotations = [[self.document annotationManagerForPage:0] dirtyAnnotations];
NSLog(@"Dirty Annotations: %@", dirtyAnnotations);
Expand All @@ -54,7 +54,7 @@ - (void)saveAnnotations {
}else {
[self reloadData];
NSLog(@"---------------------------------------------------");
NSLog(@"Annotations after saving: %@", [self.document annotationsForPage:0 type:PSPDFAnnotationTypeAll]);
//NSLog(@"Annotations after saving: %@", [self.document annotationsForPage:0 type:PSPDFAnnotationTypeAll]);
//[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Success", @"") message:[NSString stringWithFormat:NSLocalizedString(@"Saved %d annotation(s)", @""), dirtyAnnotationCount] delegate:nil cancelButtonTitle:NSLocalizedString(@"Ok", @"") otherButtonTitles:nil] show];

if (self.document.data) NSLog(@"Length of NSData after saving: %tu", self.document.data.length);
Expand Down

0 comments on commit b41d197

Please sign in to comment.