Revision: 7421
http://skim-app.svn.sourceforge.net/skim-app/?rev=7421&view=rev
Author: hofman
Date: 2011-08-06 17:14:32 +0000 (Sat, 06 Aug 2011)
Log Message:
-----------
move SKTemporaryData class to separate files
Modified Paths:
--------------
trunk/SKMainDocument.m
trunk/Skim.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/SKTemporaryData.h
trunk/SKTemporaryData.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2011-08-05 21:34:35 UTC (rev 7420)
+++ trunk/SKMainDocument.m 2011-08-06 17:14:32 UTC (rev 7421)
@@ -86,6 +86,7 @@
#import "NSError_SKExtensions.h"
#import "PDFDocument_SKExtensions.h"
#import "SKPrintAccessoryController.h"
+#import "SKTemporaryData.h"
#define BUNDLE_DATA_FILENAME @"data"
#define PRESENTATION_OPTIONS_KEY
@"net_sourceforge_skim-app_presentation_options"
@@ -126,23 +127,6 @@
@end
-@interface SKTemporaryData : NSObject {
- PDFDocument *pdfDocument;
- NSArray *noteDicts;
- NSDictionary *presentationOptions;
- NSArray *openMetaTags;
- double openMetaRating;
-}
-
-@property (nonatomic, retain) PDFDocument *pdfDocument;
-@property (nonatomic, copy) NSArray *noteDicts;
-@property (nonatomic, copy) NSDictionary *presentationOptions;
-@property (nonatomic, copy) NSArray *openMetaTags;
-@property (nonatomic) double openMetaRating;
-
-@end
-
-
@interface PDFDocument (SKPrivateDeclarations)
- (NSPrintOperation *)getPrintOperationForPrintInfo:(NSPrintInfo *)printInfo
autoRotate:(BOOL)autoRotate;
@end
@@ -2000,30 +1984,3 @@
}
@end
-
-
-@implementation SKTemporaryData
-
-@synthesize pdfDocument, noteDicts, presentationOptions, openMetaTags,
openMetaRating;
-
-- (id)init {
- self = [super init];
- if (self) {
- pdfDocument = nil;
- noteDicts = nil;
- presentationOptions = nil;
- openMetaTags = nil;
- openMetaRating = 0.0;
- }
- return self;
-}
-
-- (void)dealloc {
- SKDESTROY(pdfDocument);
- SKDESTROY(noteDicts);
- SKDESTROY(presentationOptions);
- SKDESTROY(openMetaTags);
- [super dealloc];
-}
-
-@end
Added: trunk/SKTemporaryData.h
===================================================================
--- trunk/SKTemporaryData.h (rev 0)
+++ trunk/SKTemporaryData.h 2011-08-06 17:14:32 UTC (rev 7421)
@@ -0,0 +1,56 @@
+//
+// SKTemporaryData.h
+// Skim
+//
+// Created by Christiaan Hofman on 8/6/11.
+/*
+ This software is Copyright (c) 2008-2011
+ 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>
+
+
+@interface SKTemporaryData : NSObject {
+ PDFDocument *pdfDocument;
+ NSArray *noteDicts;
+ NSDictionary *presentationOptions;
+ NSArray *openMetaTags;
+ double openMetaRating;
+}
+
+@property (nonatomic, retain) PDFDocument *pdfDocument;
+@property (nonatomic, copy) NSArray *noteDicts;
+@property (nonatomic, copy) NSDictionary *presentationOptions;
+@property (nonatomic, copy) NSArray *openMetaTags;
+@property (nonatomic) double openMetaRating;
+
+@end
Added: trunk/SKTemporaryData.m
===================================================================
--- trunk/SKTemporaryData.m (rev 0)
+++ trunk/SKTemporaryData.m 2011-08-06 17:14:32 UTC (rev 7421)
@@ -0,0 +1,66 @@
+//
+// SKTemporaryData.m
+// Skim
+//
+// Created by Christiaan Hofman on 8/6/11.
+/*
+ This software is Copyright (c) 2008-2011
+ 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 "SKTemporaryData.h"
+
+
+@implementation SKTemporaryData
+
+@synthesize pdfDocument, noteDicts, presentationOptions, openMetaTags,
openMetaRating;
+
+- (id)init {
+ self = [super init];
+ if (self) {
+ pdfDocument = nil;
+ noteDicts = nil;
+ presentationOptions = nil;
+ openMetaTags = nil;
+ openMetaRating = 0.0;
+ }
+ return self;
+}
+
+- (void)dealloc {
+ SKDESTROY(pdfDocument);
+ SKDESTROY(noteDicts);
+ SKDESTROY(presentationOptions);
+ SKDESTROY(openMetaTags);
+ [super dealloc];
+}
+
+@end
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2011-08-05 21:34:35 UTC (rev
7420)
+++ trunk/Skim.xcodeproj/project.pbxproj 2011-08-06 17:14:32 UTC (rev
7421)
@@ -212,6 +212,7 @@
CEAFFD7D0C40ED5400C3ECBB /* ToolbarFonts.tiff in Resources */ =
{isa = PBXBuildFile; fileRef = CEAFFD7B0C40ED5400C3ECBB /* ToolbarFonts.tiff
*/; };
CEAFFD9D0C40F2A800C3ECBB /* ToolbarLines.tiff in Resources */ =
{isa = PBXBuildFile; fileRef = CEAFFD9C0C40F2A800C3ECBB /* ToolbarLines.tiff
*/; };
CEB34A530F5C1B7E0037E086 /* dsa_pub.pem in Resources */ = {isa
= PBXBuildFile; fileRef = CEB34A520F5C1B7E0037E086 /* dsa_pub.pem */; };
+ CEB402C313EDAD6100851D1B /* SKTemporaryData.m in Sources */ =
{isa = PBXBuildFile; fileRef = CEB402C213EDAD6100851D1B /* SKTemporaryData.m
*/; };
CEB735A20C4A8CD6000350F9 /* TransitionShading.tiff in Resources
*/ = {isa = PBXBuildFile; fileRef = CEB735A10C4A8CD6000350F9 /*
TransitionShading.tiff */; };
CEBD52ED0C9C0AE500FBF6A4 /* SKBookmark.m in Sources */ = {isa =
PBXBuildFile; fileRef = CEBD52EB0C9C0AE500FBF6A4 /* SKBookmark.m */; };
CEBF85E20CCE2DE70057A050 /* NSAffineTransform_SKExtensions.m in
Sources */ = {isa = PBXBuildFile; fileRef = CEBF85E00CCE2DE70057A050 /*
NSAffineTransform_SKExtensions.m */; };
@@ -886,6 +887,8 @@
CEAFFD7B0C40ED5400C3ECBB /* ToolbarFonts.tiff */ = {isa =
PBXFileReference; lastKnownFileType = image.tiff; path = ToolbarFonts.tiff;
sourceTree = "<group>"; };
CEAFFD9C0C40F2A800C3ECBB /* ToolbarLines.tiff */ = {isa =
PBXFileReference; lastKnownFileType = image.tiff; path = ToolbarLines.tiff;
sourceTree = "<group>"; };
CEB34A520F5C1B7E0037E086 /* dsa_pub.pem */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path =
dsa_pub.pem; sourceTree = "<group>"; };
+ CEB402C113EDAD6100851D1B /* SKTemporaryData.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKTemporaryData.h; sourceTree = "<group>"; };
+ CEB402C213EDAD6100851D1B /* SKTemporaryData.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKTemporaryData.m; sourceTree = "<group>"; };
CEB53FF20F261D1400723C1F /* zh_TW */ = {isa = PBXFileReference;
lastKnownFileType = text.rtf; name = zh_TW; path = zh_TW.lproj/Credits.rtf;
sourceTree = "<group>"; };
CEB53FF50F261D1400723C1F /* zh_TW */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = zh_TW; path =
zh_TW.lproj/InfoPlist.strings; sourceTree = "<group>"; };
CEB53FF80F261D1500723C1F /* zh_TW */ = {isa = PBXFileReference;
fileEncoding = 10; lastKnownFileType = text.plist.strings; name = zh_TW; path =
zh_TW.lproj/Localizable.strings; sourceTree = "<group>"; };
@@ -1685,6 +1688,8 @@
CE2DE4910B85D48F00D0DA12 /* SKThumbnail.m */,
CE8978CB0CBFC70B00EA2D98 /* SKTemplateTag.h */,
CE8978CC0CBFC70B00EA2D98 /* SKTemplateTag.m */,
+ CEB402C113EDAD6100851D1B /* SKTemporaryData.h
*/,
+ CEB402C213EDAD6100851D1B /* SKTemporaryData.m
*/,
CE9B80481030642400EA8774 /* SKTransitionInfo.h
*/,
CE9B80491030642400EA8774 /* SKTransitionInfo.m
*/,
CEF7117C0B90B58E003A2771 /* SKVersionNumber.h
*/,
@@ -2532,6 +2537,7 @@
CEECD61C12E9E30B00B9E35E /*
NSError_SKExtensions.m in Sources */,
CE12A73E134F215F003AED67 /* SKSelectCommand.m
in Sources */,
CE030C6113C07A57007A47E9 /*
PDFView_SKExtensions.m in Sources */,
+ CEB402C313EDAD6100851D1B /* SKTemporaryData.m
in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit