Revision: 5454
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5454&view=rev
Author:   hofman
Date:     2009-06-26 13:01:29 +0000 (Fri, 26 Jun 2009)

Log Message:
-----------
use separate applescript accessor for page of a note to enforce read-only 

Modified Paths:
--------------
    trunk/PDFAnnotation_SKExtensions.h
    trunk/PDFAnnotation_SKExtensions.m
    trunk/Skim.sdef

Modified: trunk/PDFAnnotation_SKExtensions.h
===================================================================
--- trunk/PDFAnnotation_SKExtensions.h  2009-06-24 16:57:21 UTC (rev 5453)
+++ trunk/PDFAnnotation_SKExtensions.h  2009-06-26 13:01:29 UTC (rev 5454)
@@ -105,6 +105,7 @@
 + (NSSet *)customScriptingKeys;
 - (NSScriptObjectSpecifier *)objectSpecifier;
 - (FourCharCode)scriptingNoteType;
+- (PDFPage *)scriptingPage;
 - (FourCharCode)scriptingIconType;
 - (id)textContents;
 - (void)setTextContents:(id)text;

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2009-06-24 16:57:21 UTC (rev 5453)
+++ trunk/PDFAnnotation_SKExtensions.m  2009-06-26 13:01:29 UTC (rev 5454)
@@ -382,6 +382,10 @@
         [currentCommand 
setScriptErrorNumber:NSReceiversCantHandleCommandScriptError]; 
 }
 
+- (PDFPage *)scriptingPage {
+    return [self page];
+}
+
 - (FourCharCode)scriptingIconType {
     return SKScriptingTextAnnotationIconNote;
 }

Modified: trunk/Skim.sdef
===================================================================
--- trunk/Skim.sdef     2009-06-24 16:57:21 UTC (rev 5453)
+++ trunk/Skim.sdef     2009-06-26 13:01:29 UTC (rev 5454)
@@ -727,7 +727,7 @@
             </property>
             <property name="page" code="Page" type="page" access="r"
                 description="The page for the note.">
-                <cocoa key="page"/>
+                <cocoa key="scriptingPage"/>
             </property>
             <property name="bounds" code="pbnd" type="rectangle"
                 description="The bounding rectangle of the note (left, top, 
right, bottom).">


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to