Revision: 2332 http://skim-app.svn.sourceforge.net/skim-app/?rev=2332&view=rev Author: hofman Date: 2007-06-17 16:34:37 -0700 (Sun, 17 Jun 2007)
Log Message: ----------- return 0 when no index is found in "get index for" script command. Modified Paths: -------------- trunk/PDFSelection_SKExtensions.m trunk/Skim.sdef Modified: trunk/PDFSelection_SKExtensions.m =================================================================== --- trunk/PDFSelection_SKExtensions.m 2007-06-17 21:02:55 UTC (rev 2331) +++ trunk/PDFSelection_SKExtensions.m 2007-06-17 23:34:37 UTC (rev 2332) @@ -466,7 +466,7 @@ } } - return [NSNumber numberWithInt:index == NSNotFound ? -1 : (int)index + 1]; + return [NSNumber numberWithInt:index == NSNotFound ? 0 : (int)index + 1]; } @end Modified: trunk/Skim.sdef =================================================================== --- trunk/Skim.sdef 2007-06-17 21:02:55 UTC (rev 2331) +++ trunk/Skim.sdef 2007-06-17 23:34:37 UTC (rev 2332) @@ -1090,7 +1090,7 @@ <cocoa key="Last"/> </parameter> <result type="integer" - description="The index for the object. Returns -1 if no index was found."> + description="The index for the object. Returns 0 if no index was found."> </result> </command> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit