Revision: 9714
          http://sourceforge.net/p/skim-app/code/9714
Author:   hofman
Date:     2018-03-06 15:27:08 +0000 (Tue, 06 Mar 2018)
Log Message:
-----------
Override allowsCommenting to fool the document into always allowing notes

Modified Paths:
--------------
    trunk/SKPDFDocument.m

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2018-03-05 15:25:00 UTC (rev 9713)
+++ trunk/SKPDFDocument.m       2018-03-06 15:27:08 UTC (rev 9714)
@@ -90,6 +90,9 @@
 #undef NSStringCompareOptions
 #endif
 
+// fool the document into thinking it always allows annotations
+- (BOOL)allowsCommenting { return YES; }
+
 - (id <SKPDFDocumentDelegate>)delegate {
     return (id <SKPDFDocumentDelegate>)[super delegate];
 }

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

Reply via email to