Revision: 3942
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3942&view=rev
Author:   hofman
Date:     2008-05-30 14:58:32 -0700 (Fri, 30 May 2008)

Log Message:
-----------
Add pdfsync preset for AquaX

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

Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m       2008-05-30 19:11:26 UTC (rev 3941)
+++ trunk/SKPDFDocument.m       2008-05-30 21:58:32 UTC (rev 3942)
@@ -1448,6 +1448,12 @@
                 } else if ((toolPath = [[[appBundle sharedSupportPath] 
stringByAppendingPathComponent:@"bin"] 
stringByAppendingPathComponent:editorCmd]) &&
                            [[NSFileManager defaultManager] 
isExecutableFileAtPath:toolPath]) {
                     editorCmd = toolPath;
+                } else if ((toolPath = [[appBundle resourcePath] 
stringByAppendingPathComponent:editorCmd]) &&
+                           [[NSFileManager defaultManager] 
isExecutableFileAtPath:toolPath]) {
+                    editorCmd = toolPath;
+                } else if ((toolPath = [[[appBundle resourcePath] 
stringByAppendingPathComponent:@"bin"] 
stringByAppendingPathComponent:editorCmd]) &&
+                           [[NSFileManager defaultManager] 
isExecutableFileAtPath:toolPath]) {
+                    editorCmd = toolPath;
                 }
             }
         } else {

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2008-05-30 19:11:26 UTC (rev 3941)
+++ trunk/SKPreferenceController.m      2008-05-30 21:58:32 UTC (rev 3942)
@@ -49,9 +49,9 @@
 static NSString *SKPreferenceResettableKeysKey = @"ResettableKeys";
 
 static float SKDefaultFontSizes[] = {8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 
16.0, 18.0, 20.0, 24.0, 28.0, 32.0, 48.0, 64.0};
-static NSString *SKTeXEditors[] = {@"TextMate", @"BBEdit", @"TextWrangler", 
@"Emacs", @"Aquamacs Emacs", @"LyX"};
-static NSString *SKTeXEditorCommands[] = {@"mate", @"bbedit", @"edit", 
@"emacsclient", @"emacsclient", @"lyxeditor"};
-static NSString *SKTeXEditorArguments[] = {@"-l %line \"%file\"", @"+%line 
\"%file\"", @"+%line \"%file\"", @"--no-wait +%line \"%file\"", @"--no-wait 
+%line \"%file\"", @"\"%file\" %line"};
+static NSString *SKTeXEditors[] = {@"TextMate", @"BBEdit", @"TextWrangler", 
@"Emacs", @"Aquamacs Emacs", @"LyX", @"AquaX"};
+static NSString *SKTeXEditorCommands[] = {@"mate", @"bbedit", @"edit", 
@"emacsclient", @"emacsclient", @"lyxeditor", @"aquac"};
+static NSString *SKTeXEditorArguments[] = {@"-l %line \"%file\"", @"+%line 
\"%file\"", @"+%line \"%file\"", @"--no-wait +%line \"%file\"", @"--no-wait 
+%line \"%file\"", @"\"%file\" %line", @"+%line \"%file\""};
 
 static NSString *SKPreferenceWindowFrameAutosaveName = @"SKPreferenceWindow";
 


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to