Revision: 9229 http://sourceforge.net/p/skim-app/code/9229 Author: hofman Date: 2017-01-29 10:29:21 +0000 (Sun, 29 Jan 2017) Log Message: ----------- Draw anchored note icons for popup by drawing page with an actual anchored note, so it works on 10.12
Modified Paths: -------------- trunk/SKNoteWindowController.m Modified: trunk/SKNoteWindowController.m =================================================================== --- trunk/SKNoteWindowController.m 2017-01-29 00:47:05 UTC (rev 9228) +++ trunk/SKNoteWindowController.m 2017-01-29 10:29:21 UTC (rev 9229) @@ -86,7 +86,8 @@ if (noteIcons[0]) return; NSRect bounds = {NSZeroPoint, SKNPDFAnnotationNoteSize}; - PDFAnnotationText *annotation = [[PDFAnnotationText alloc] initWithBounds:bounds]; + PDFAnnotationText *annotation = [[SKNPDFAnnotationNote alloc] initWithBounds:bounds]; + [annotation setColor:[NSColor clearColor]]; PDFPage *page = [[PDFPage alloc] init]; [page setBounds:bounds forBox:kPDFDisplayBoxMediaBox]; [page addAnnotation:annotation]; @@ -96,7 +97,7 @@ for (i = 0; i < 7; i++) { [annotation setIconType:i]; noteIcons[i] = [[NSImage bitmapImageWithSize:SKNPDFAnnotationNoteSize drawingHandler:^(NSRect rect){ - [annotation drawWithBox:kPDFDisplayBoxMediaBox]; + [page drawWithBox:kPDFDisplayBoxMediaBox]; }] retain]; } [page release]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit