Revision: 3436
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3436&view=rev
Author:   hofman
Date:     2008-02-24 04:40:39 -0800 (Sun, 24 Feb 2008)

Log Message:
-----------
Add a Leopard bundle for a print accessory controller, so we can make use of 
the preview feature in the print panel on Leopard.

Modified Paths:
--------------
    trunk/SKMainWindowController.h
    trunk/SKMainWindowController.m
    trunk/Skim.xcodeproj/project.pbxproj

Added Paths:
-----------
    trunk/Leopard-Info.plist
    trunk/SKPrintAccessoryController.h
    trunk/SKPrintAccessoryController.m

Added: trunk/Leopard-Info.plist
===================================================================
--- trunk/Leopard-Info.plist                            (rev 0)
+++ trunk/Leopard-Info.plist    2008-02-24 12:40:39 UTC (rev 3436)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleExecutable</key>
+       <string>${EXECUTABLE_NAME}</string>
+       <key>CFBundleIdentifier</key>
+       <string>com.yourcompany.Leopard</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundlePackageType</key>
+       <string>BNDL</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>1.0</string>
+</dict>
+</plist>

Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h      2008-02-24 01:14:41 UTC (rev 3435)
+++ trunk/SKMainWindowController.h      2008-02-24 12:40:39 UTC (rev 3436)
@@ -70,7 +70,7 @@
 
 @class PDFOutline, SKThumbnail;
 @class SKPDFView, SKSecondaryPDFView, SKTocOutlineView, SKNoteOutlineView, 
SKThumbnailTableView, SKSnapshotTableView, SKSplitView, BDSKCollapsibleView, 
BDSKEdgeView, BDSKGradientView, SKColorSwatch, SKStatusBar;
[EMAIL PROTECTED] SKFullScreenWindow, SKNavigationWindow, SKSideWindow, 
SKSnapshotWindowController, SKProgressController, SKPageSheetController, 
SKScaleSheetController, SKPasswordSheetController, SKBookmarkSheetController, 
SKPrintAccessoryViewController;
[EMAIL PROTECTED] SKFullScreenWindow, SKNavigationWindow, SKSideWindow, 
SKSnapshotWindowController, SKProgressController, SKPageSheetController, 
SKScaleSheetController, SKPasswordSheetController, SKBookmarkSheetController;
 
 @interface SKMainWindowController : NSWindowController {
     IBOutlet SKSplitView        *splitView;
@@ -198,7 +198,7 @@
     SKPasswordSheetController   *passwordSheetController;
     SKBookmarkSheetController   *bookmarkSheetController;
     
-    SKPrintAccessoryViewController *printAccessoryViewController;
+    id                          printAccessoryViewController;
     
     SKProgressController        *progressController;
     

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2008-02-24 01:14:41 UTC (rev 3435)
+++ trunk/SKMainWindowController.m      2008-02-24 12:40:39 UTC (rev 3436)
@@ -331,6 +331,7 @@
     [passwordSheetController release];
     [bookmarkSheetController release];
     [secondaryPdfEdgeView release];
+    [printAccessoryViewController release];
     [super dealloc];
 }
 
@@ -3014,14 +3015,25 @@
 
 - (void)document:(PDFDocument *)document 
preparePrintOperation:(NSPrintOperation *)printOperation {
     NSPrintPanel *printPanel = [printOperation printPanel];
-    if ([printPanel respondsToSelector:@selector(setOptions:)])
+    
+    [printAccessoryViewController release];
+    
+    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_4) {
         [printPanel setOptions:[printPanel options] | 
NSPrintPanelShowsOrientation | NSPrintPanelShowsScaling];
-    
-    if (printAccessoryViewController)
-        [printAccessoryViewController release];
-    printAccessoryViewController = [[SKPrintAccessoryViewController alloc] 
initWithPrintOperation:printOperation document:document];
-    if (printAccessoryViewController)
-        [printOperation setAccessoryView:[printAccessoryViewController view]];
+        
+        Class printAccessoryControllerClass = 
NSClassFromString(@"SKPrintAccessoryController");
+        if (printAccessoryControllerClass == Nil) {
+            [[NSBundle bundleWithPath:[[NSBundle mainBundle] 
pathForResource:@"Leopard" ofType:@"bundle"]] load];
+            printAccessoryControllerClass = 
NSClassFromString(@"SKPrintAccessoryController");
+        }
+        printAccessoryViewController = [[printAccessoryControllerClass alloc] 
initWithPrintOperation:printOperation document:document];
+        if (printAccessoryViewController)
+            [printPanel addAccessoryController:printAccessoryViewController];
+    } else {
+        printAccessoryViewController = [[SKPrintAccessoryViewController alloc] 
initWithPrintOperation:printOperation document:document];
+        if (printAccessoryViewController)
+            [printPanel setAccessoryView:[printAccessoryViewController view]];
+    }
 }
 
 - (void)document:(PDFDocument *)document 
cleanupAfterPrintOperation:(NSPrintOperation *)printOperation {

Added: trunk/SKPrintAccessoryController.h
===================================================================
--- trunk/SKPrintAccessoryController.h                          (rev 0)
+++ trunk/SKPrintAccessoryController.h  2008-02-24 12:40:39 UTC (rev 3436)
@@ -0,0 +1,58 @@
+//
+//  SKPrintAccessoryController.h
+//  Skim
+//
+//  Created by Christiaan Hofman on 2/24/08.
+/*
+ This software is Copyright (c) 2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import <Cocoa/Cocoa.h>
+#import <Quartz/Quartz.h>
+
+
[EMAIL PROTECTED] SKPrintAccessoryController : NSViewController 
<NSPrintPanelAccessorizing> {
+    IBOutlet NSButton *autoRotateButton;
+    IBOutlet NSMatrix *printScalingModeMatrix;
+    NSPrintOperation *printOperation;
+    PDFDocument *document;
+}
+
+- (id)initWithPrintOperation:(NSPrintOperation *)aPrintOperation 
document:(PDFDocument *)aDocument;
+
+- (BOOL)autoRotate;
+- (void)setAutoRotate:(BOOL)autoRotate;
+
+- (PDFPrintScalingMode)printScalingMode;
+- (void)setPrintScalingMode:(PDFPrintScalingMode)printScalingMode;
+
[EMAIL PROTECTED]

Added: trunk/SKPrintAccessoryController.m
===================================================================
--- trunk/SKPrintAccessoryController.m                          (rev 0)
+++ trunk/SKPrintAccessoryController.m  2008-02-24 12:40:39 UTC (rev 3436)
@@ -0,0 +1,107 @@
+//
+//  SKPrintAccessoryController.m
+//  Skim
+//
+//  Created by Christiaan Hofman on 2/24/08.
+/*
+ This software is Copyright (c) 2008
+ Christiaan Hofman. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+
+ - Neither the name of Christiaan Hofman nor the names of any
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#import "SKPrintAccessoryController.h"
+
+
[EMAIL PROTECTED] PDFDocument (SKLeopardPrivateDeclarations)
+- (void)setAutoRotate:(BOOL)autoRotate forPrintOperation:(NSPrintOperation 
*)printOperation;
+- (void)setPrintScalingMode:(int)printScalingMode 
forPrintOperation:(NSPrintOperation *)printOperation;
[EMAIL PROTECTED]
+
+
[EMAIL PROTECTED] SKPrintAccessoryController
+
+- (id)initWithPrintOperation:(NSPrintOperation *)aPrintOperation 
document:(PDFDocument *)aDocument {
+    if (aDocument == nil || aPrintOperation == nil || 
+        (NO == [aDocument 
respondsToSelector:@selector(setAutoRotate:forPrintOperation:)] && 
+         nil == [aPrintOperation 
valueForKeyPath:@"printInfo.dictionary.PDFPrintAutoRotate"])) {
+        [self release];
+        self = nil;
+    } else if (self = [super initWithNibName:@"PrintAccessoryView" 
bundle:[NSBundle mainBundle]]) {
+        printOperation = [aPrintOperation retain];
+        document = [aDocument retain];
+    }
+    return self;
+}
+
+- (void)dealloc {
+    [printOperation release];
+    [document release];
+    [super dealloc];
+}
+
+- (void)windowDidLoad {
+    [autoRotateButton setState:[self autoRotate] ? NSOnState : NSOffState];
+    [printScalingModeMatrix selectCellWithTag:[self printScalingMode]];
+    [printScalingModeMatrix setEnabled:[document 
respondsToSelector:@selector(setPrintScalingMode:forPrintOperation:)]];
+}
+
+- (BOOL)autoRotate {
+    return [[printOperation 
valueForKeyPath:@"printInfo.dictionary.PDFPrintAutoRotate"] boolValue];
+}
+
+- (void)setAutoRotate:(BOOL)autoRotate {
+    [self willChangeValueForKey:@"localizedSummaryItems"];
+    if ([document 
respondsToSelector:@selector(setAutoRotate:forPrintOperation:)])
+        [document setAutoRotate:autoRotate forPrintOperation:printOperation];
+    [self didChangeValueForKey:@"localizedSummaryItems"];
+}
+
+- (PDFPrintScalingMode)printScalingMode {
+    return [[printOperation 
valueForKeyPath:@"printInfo.dictionary.PDFPrintScalingMode"] intValue];
+}
+
+- (void)setPrintScalingMode:(PDFPrintScalingMode)printScalingMode {
+    [self willChangeValueForKey:@"localizedSummaryItems"];
+    if ([document 
respondsToSelector:@selector(setAutoRotate:forPrintOperation:)])
+        [document setPrintScalingMode:printScalingMode 
forPrintOperation:printOperation];
+    [self didChangeValueForKey:@"localizedSummaryItems"];
+}
+
+- (NSSet *)keyPathsForValuesAffectingPreview {
+    return [NSSet setWithObjects:@"printAutoRotate", @"printScalingMode", nil];
+}
+
+- (NSArray *)localizedSummaryItems {
+    return [NSArray arrayWithObjects:
+            [NSDictionary dictionaryWithObjectsAndKeys:@"autoRotate", 
NSPrintPanelAccessorySummaryItemNameKey, [[self valueForKey:@"printAutoRotate"] 
description], NSPrintPanelAccessorySummaryItemDescriptionKey, nil], 
+            [NSDictionary dictionaryWithObjectsAndKeys:@"printScalingMode", 
NSPrintPanelAccessorySummaryItemNameKey, [[self 
valueForKey:@"printScalingMode"] description], 
NSPrintPanelAccessorySummaryItemDescriptionKey, nil], nil];
+}
+
[EMAIL PROTECTED]

Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj        2008-02-24 01:14:41 UTC (rev 
3435)
+++ trunk/Skim.xcodeproj/project.pbxproj        2008-02-24 12:40:39 UTC (rev 
3436)
@@ -136,6 +136,10 @@
                CE7B85FD0CCF4AA800793F46 /* SmallMenu.tiff in Resources */ = 
{isa = PBXBuildFile; fileRef = CE7B85FC0CCF4AA800793F46 /* SmallMenu.tiff */; };
                CE7C20500C259A5D0059E08C /* NSColor_SKExtensions.m in Sources 
*/ = {isa = PBXBuildFile; fileRef = CE7C204E0C259A5D0059E08C /* 
NSColor_SKExtensions.m */; };
                CE816A060D70F9A7008D807D /* Skim.qlgenerator in CopyFiles */ = 
{isa = PBXBuildFile; fileRef = CEC7B4EE0CF607CA008CCD63 /* Skim.qlgenerator */; 
};
+               CE816AB00D7195B7008D807D /* SKPrintAccessoryController.m in 
Sources */ = {isa = PBXBuildFile; fileRef = CE816AA30D718C8C008D807D /* 
SKPrintAccessoryController.m */; };
+               CE816B030D71963B008D807D /* Cocoa.framework in Frameworks */ = 
{isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; 
};
+               CE816B040D71963B008D807D /* Quartz.framework in Frameworks */ = 
{isa = PBXBuildFile; fileRef = 455989F70B2662FF00E5419B /* Quartz.framework */; 
};
+               CE816B0E0D719700008D807D /* Leopard.bundle in CopyFiles */ = 
{isa = PBXBuildFile; fileRef = CE816AAB0D71958F008D807D /* Leopard.bundle */; };
                CE820A220C8A0E310020E6B0 /* NSTask_SKExtensions.m in Sources */ 
= {isa = PBXBuildFile; fileRef = CE820A200C8A0E310020E6B0 /* 
NSTask_SKExtensions.m */; };
                CE8978CE0CBFC70B00EA2D98 /* SKTag.m in Sources */ = {isa = 
PBXBuildFile; fileRef = CE8978CC0CBFC70B00EA2D98 /* SKTag.m */; };
                CE898F060C843A8B008A0856 /* PDFDDocument.icns in Resources */ = 
{isa = PBXBuildFile; fileRef = CE898F050C843A8B008A0856 /* PDFDDocument.icns 
*/; };
@@ -259,6 +263,13 @@
                        remoteGlobalIDString = 8D57630D048677EA00EA77CD /* Skim 
*/;
                        remoteInfo = Skim;
                };
+               CE816AB50D7195E8008D807D /* PBXContainerItemProxy */ = {
+                       isa = PBXContainerItemProxy;
+                       containerPortal = 2A37F4A9FDCFA73011CA2CEA /* Project 
object */;
+                       proxyType = 1;
+                       remoteGlobalIDString = CE816AAA0D71958F008D807D /* 
Leopard */;
+                       remoteInfo = Leopard;
+               };
                CEC7B4ED0CF607CA008CCD63 /* PBXContainerItemProxy */ = {
                        isa = PBXContainerItemProxy;
                        containerPortal = CEC7B4E60CF607CA008CCD63 /* 
QuickLook-Skim.xcodeproj */;
@@ -293,6 +304,16 @@
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
+               CE816B080D7196F2008D807D /* CopyFiles */ = {
+                       isa = PBXCopyFilesBuildPhase;
+                       buildActionMask = 2147483647;
+                       dstPath = "";
+                       dstSubfolderSpec = 7;
+                       files = (
+                               CE816B0E0D719700008D807D /* Leopard.bundle in 
CopyFiles */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
                CEE112760BCBF52500BF2D3E /* CopyFiles */ = {
                        isa = PBXCopyFilesBuildPhase;
                        buildActionMask = 2147483647;
@@ -614,6 +635,10 @@
                CE7B85FC0CCF4AA800793F46 /* SmallMenu.tiff */ = {isa = 
PBXFileReference; lastKnownFileType = image.tiff; name = SmallMenu.tiff; path = 
Images/SmallMenu.tiff; sourceTree = "<group>"; };
                CE7C204D0C259A5D0059E08C /* NSColor_SKExtensions.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
NSColor_SKExtensions.h; sourceTree = "<group>"; };
                CE7C204E0C259A5D0059E08C /* NSColor_SKExtensions.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= NSColor_SKExtensions.m; sourceTree = "<group>"; };
+               CE816AA20D718C8C008D807D /* SKPrintAccessoryController.h */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; 
path = SKPrintAccessoryController.h; sourceTree = "<group>"; };
+               CE816AA30D718C8C008D807D /* SKPrintAccessoryController.m */ = 
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = 
sourcecode.c.objc; path = SKPrintAccessoryController.m; sourceTree = "<group>"; 
};
+               CE816AAB0D71958F008D807D /* Leopard.bundle */ = {isa = 
PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path 
= Leopard.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
+               CE816AAC0D71958F008D807D /* Leopard-Info.plist */ = {isa = 
PBXFileReference; lastKnownFileType = text.plist.xml; path = 
"Leopard-Info.plist"; sourceTree = "<group>"; };
                CE820A1F0C8A0E310020E6B0 /* NSTask_SKExtensions.h */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = 
NSTask_SKExtensions.h; sourceTree = "<group>"; };
                CE820A200C8A0E310020E6B0 /* NSTask_SKExtensions.m */ = {isa = 
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path 
= NSTask_SKExtensions.m; sourceTree = "<group>"; };
                CE87EF690BA9FF5A0027BBDD /* skimhelp.css */ = {isa = 
PBXFileReference; explicitFileType = text; fileEncoding = 30; name = 
skimhelp.css; path = "English.lproj/Skim Help/sty/skimhelp.css"; sourceTree = 
"<group>"; };
@@ -818,6 +843,15 @@
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
+               CE816AA90D71958F008D807D /* Frameworks */ = {
+                       isa = PBXFrameworksBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               CE816B030D71963B008D807D /* Cocoa.framework in 
Frameworks */,
+                               CE816B040D71963B008D807D /* Quartz.framework in 
Frameworks */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
                CEF3BF730B99CA2900E12E3D /* Frameworks */ = {
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
@@ -859,6 +893,7 @@
                        children = (
                                8D15AC370486D014006FF6A4 /* Skim.app */,
                                CEF3BF750B99CA2900E12E3D /* skimnotes */,
+                               CE816AAB0D71958F008D807D /* Leopard.bundle */,
                        );
                        name = Products;
                        sourceTree = "<group>";
@@ -875,6 +910,7 @@
                                2A37F4B8FDCFA73011CA2CEA /* Resources */,
                                CEE22EA20BFB8631002B746B /* Shared Support */,
                                CE2BD8160BD4123D00A5F4DB /* Subprojects */,
+                               CE816AA10D718C5B008D807D /* Leopard */,
                                2A37F4C3FDCFA73011CA2CEA /* Frameworks */,
                                19C28FB0FE9D524F11CA2CBB /* Products */,
                        );
@@ -1262,6 +1298,16 @@
                        name = Images;
                        sourceTree = "<group>";
                };
+               CE816AA10D718C5B008D807D /* Leopard */ = {
+                       isa = PBXGroup;
+                       children = (
+                               CE816AA20D718C8C008D807D /* 
SKPrintAccessoryController.h */,
+                               CE816AA30D718C8C008D807D /* 
SKPrintAccessoryController.m */,
+                               CE816AAC0D71958F008D807D /* Leopard-Info.plist 
*/,
+                       );
+                       name = Leopard;
+                       sourceTree = "<group>";
+               };
                CE9BD6FA0D096EE300EB1A6C /* RemoteControl */ = {
                        isa = PBXGroup;
                        children = (
@@ -1356,6 +1402,7 @@
                                CEE112760BCBF52500BF2D3E /* CopyFiles */,
                                CEFD68720C01D3FE0027B933 /* CopyFiles */,
                                CE816A0A0D70F9B6008D807D /* CopyFiles */,
+                               CE816B080D7196F2008D807D /* CopyFiles */,
                                CEE22EA50BFB8691002B746B /* ShellScript */,
                                CE4B67590BF4DC3000A73E42 /* ShellScript */,
                                CE4DA9060B9E17890039E89C /* ShellScript */,
@@ -1367,6 +1414,7 @@
                                CE1E39880BDBCC930011D9DD /* PBXTargetDependency 
*/,
                                CEFD68710C01D3E50027B933 /* PBXTargetDependency 
*/,
                                CE816A030D70F8F7008D807D /* PBXTargetDependency 
*/,
+                               CE816AB60D7195E8008D807D /* PBXTargetDependency 
*/,
                        );
                        name = Skim;
                        productInstallPath = "$(HOME)/Applications";
@@ -1374,6 +1422,23 @@
                        productReference = 8D15AC370486D014006FF6A4 /* Skim.app 
*/;
                        productType = "com.apple.product-type.application";
                };
+               CE816AAA0D71958F008D807D /* Leopard */ = {
+                       isa = PBXNativeTarget;
+                       buildConfigurationList = CE816AAF0D719592008D807D /* 
Build configuration list for PBXNativeTarget "Leopard" */;
+                       buildPhases = (
+                               CE816AA70D71958F008D807D /* Resources */,
+                               CE816AA80D71958F008D807D /* Sources */,
+                               CE816AA90D71958F008D807D /* Frameworks */,
+                       );
+                       buildRules = (
+                       );
+                       dependencies = (
+                       );
+                       name = Leopard;
+                       productName = Leopard;
+                       productReference = CE816AAB0D71958F008D807D /* 
Leopard.bundle */;
+                       productType = "com.apple.product-type.bundle";
+               };
                CEF3BF740B99CA2900E12E3D /* skimnotes */ = {
                        isa = PBXNativeTarget;
                        buildConfigurationList = CEF3BF7B0B99CA4800E12E3D /* 
Build configuration list for PBXNativeTarget "skimnotes" */;
@@ -1429,6 +1494,7 @@
                                8D15AC270486D014006FF6A4 /* Skim */,
                                CE592C5D0B9239C500C113DF /* DiskImage */,
                                CEF3BF740B99CA2900E12E3D /* skimnotes */,
+                               CE816AAA0D71958F008D807D /* Leopard */,
                        );
                };
 /* End PBXProject section */
@@ -1537,6 +1603,13 @@
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
+               CE816AA70D71958F008D807D /* Resources */ = {
+                       isa = PBXResourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
@@ -1778,6 +1851,14 @@
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
+               CE816AA80D71958F008D807D /* Sources */ = {
+                       isa = PBXSourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               CE816AB00D7195B7008D807D /* 
SKPrintAccessoryController.m in Sources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
                CEF3BF720B99CA2900E12E3D /* Sources */ = {
                        isa = PBXSourcesBuildPhase;
                        buildActionMask = 2147483647;
@@ -1810,6 +1891,11 @@
                        name = Skim;
                        targetProxy = CE816A020D70F8F7008D807D /* 
PBXContainerItemProxy */;
                };
+               CE816AB60D7195E8008D807D /* PBXTargetDependency */ = {
+                       isa = PBXTargetDependency;
+                       target = CE816AAA0D71958F008D807D /* Leopard */;
+                       targetProxy = CE816AB50D7195E8008D807D /* 
PBXContainerItemProxy */;
+               };
                CEFD68710C01D3E50027B933 /* PBXTargetDependency */ = {
                        isa = PBXTargetDependency;
                        name = SkimImporter;
@@ -2248,8 +2334,8 @@
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ARCHS = (
+                                       i386,
                                        ppc,
-                                       i386,
                                );
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
@@ -2331,6 +2417,61 @@
                        };
                        name = Release;
                };
+               CE816AAD0D719591008D807D /* Debug */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = NO;
+                               GCC_DYNAMIC_NO_PIC = NO;
+                               GCC_ENABLE_FIX_AND_CONTINUE = YES;
+                               GCC_MODEL_TUNING = G5;
+                               GCC_OPTIMIZATION_LEVEL = 0;
+                               GCC_PRECOMPILE_PREFIX_HEADER = YES;
+                               GCC_PREFIX_HEADER = 
"$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
+                               INFOPLIST_FILE = "Leopard-Info.plist";
+                               INSTALL_PATH = "$(HOME)/Library/Bundles";
+                               MACOSX_DEPLOYMENT_TARGET = 10.4;
+                               OTHER_LDFLAGS = (
+                                       "-framework",
+                                       Foundation,
+                                       "-framework",
+                                       AppKit,
+                               );
+                               PREBINDING = NO;
+                               PRODUCT_NAME = Leopard;
+                               WRAPPER_EXTENSION = bundle;
+                               ZERO_LINK = YES;
+                       };
+                       name = Debug;
+               };
+               CE816AAE0D719591008D807D /* Release */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               ARCHS = (
+                                       i386,
+                                       ppc,
+                               );
+                               COPY_PHASE_STRIP = YES;
+                               DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+                               GCC_ENABLE_FIX_AND_CONTINUE = NO;
+                               GCC_MODEL_TUNING = G5;
+                               GCC_PRECOMPILE_PREFIX_HEADER = YES;
+                               GCC_PREFIX_HEADER = 
"$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
+                               INFOPLIST_FILE = "Leopard-Info.plist";
+                               INSTALL_PATH = "$(HOME)/Library/Bundles";
+                               MACOSX_DEPLOYMENT_TARGET = 10.4;
+                               OTHER_LDFLAGS = (
+                                       "-framework",
+                                       Foundation,
+                                       "-framework",
+                                       AppKit,
+                               );
+                               PREBINDING = NO;
+                               PRODUCT_NAME = Leopard;
+                               WRAPPER_EXTENSION = bundle;
+                               ZERO_LINK = NO;
+                       };
+                       name = Release;
+               };
                CEF3BF7C0B99CA4800E12E3D /* Debug */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
@@ -2431,6 +2572,15 @@
                        defaultConfigurationIsVisible = 0;
                        defaultConfigurationName = Release;
                };
+               CE816AAF0D719592008D807D /* Build configuration list for 
PBXNativeTarget "Leopard" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               CE816AAD0D719591008D807D /* Debug */,
+                               CE816AAE0D719591008D807D /* Release */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Release;
+               };
                CEF3BF7B0B99CA4800E12E3D /* Build configuration list for 
PBXNativeTarget "skimnotes" */ = {
                        isa = XCConfigurationList;
                        buildConfigurations = (


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