Revision: 4910
http://skim-app.svn.sourceforge.net/skim-app/?rev=4910&view=rev
Author: hofman
Date: 2008-11-03 14:06:54 +0000 (Mon, 03 Nov 2008)
Log Message:
-----------
move nsresponder categories to separate file
Modified Paths:
--------------
trunk/BDSKZoomablePDFView.m
trunk/NSEvent_SKExtensions.h
trunk/SKApplication.h
trunk/SKApplication.m
trunk/SKMainWindowController.m
trunk/SKPDFDocument.m
trunk/SKPDFView.m
trunk/SKSecondaryPDFView.m
trunk/Skim.xcodeproj/project.pbxproj
Added Paths:
-----------
trunk/NSResponder_SKExtensions.h
trunk/NSResponder_SKExtensions.m
Modified: trunk/BDSKZoomablePDFView.m
===================================================================
--- trunk/BDSKZoomablePDFView.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/BDSKZoomablePDFView.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -39,18 +39,10 @@
#import "BDSKZoomablePDFView.h"
#import "BDSKHeaderPopUpButton.h"
#import "NSScrollView_SKExtensions.h"
+#import "NSResponder_SKExtensions.h"
+#import "NSEvent_SKExtensions.h"
[EMAIL PROTECTED] NSResponder (BDSKGesturesPrivate)
-- (void)magnifyWithEvent:(NSEvent *)theEvent;
-- (void)beginGestureWithEvent:(NSEvent *)theEvent;
-- (void)endGestureWithEvent:(NSEvent *)theEvent;
[EMAIL PROTECTED]
-
[EMAIL PROTECTED] NSEvent (BDSKGesturesPrivate)
-- (float)magnification;
[EMAIL PROTECTED]
-
@implementation BDSKZoomablePDFView
/* For genstrings:
Modified: trunk/NSEvent_SKExtensions.h
===================================================================
--- trunk/NSEvent_SKExtensions.h 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/NSEvent_SKExtensions.h 2008-11-03 14:06:54 UTC (rev 4910)
@@ -47,3 +47,8 @@
- (NSUInteger)standardModifierFlags;
- (unichar)firstCharacter;
@end
+
[EMAIL PROTECTED] NSEvent (SKLeopardGestures)
+- (float)magnification;
+- (float)rotation;
[EMAIL PROTECTED]
Added: trunk/NSResponder_SKExtensions.h
===================================================================
--- trunk/NSResponder_SKExtensions.h (rev 0)
+++ trunk/NSResponder_SKExtensions.h 2008-11-03 14:06:54 UTC (rev 4910)
@@ -0,0 +1,56 @@
+//
+// NSResponder_SKExtensions.h
+// Skim
+//
+// Created by Christiaan Hofman on /11/308.
+/*
+ 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>
+
+
[EMAIL PROTECTED] NSResponder (SKExtensions)
+- (BOOL)isDescendantOf:(NSView *)aView;
[EMAIL PROTECTED]
+
[EMAIL PROTECTED] NSResponder (SKOptionalExtensions)
+- (void)magnifyWheel:(NSEvent *)theEvent;
+- (void)remoteButtonPressed:(NSEvent *)theEvent;
[EMAIL PROTECTED]
+
[EMAIL PROTECTED] NSResponder (SKLeopardGestures)
+- (void)magnifyWithEvent:(NSEvent *)theEvent;
+- (void)rotateWithEvent:(NSEvent *)theEvent;
+- (void)beginGestureWithEvent:(NSEvent *)theEvent;
+- (void)endGestureWithEvent:(NSEvent *)theEvent;
[EMAIL PROTECTED]
Added: trunk/NSResponder_SKExtensions.m
===================================================================
--- trunk/NSResponder_SKExtensions.m (rev 0)
+++ trunk/NSResponder_SKExtensions.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -0,0 +1,44 @@
+//
+// NSResponder_SKExtensions.m
+// Skim
+//
+// Created by Christiaan Hofman on /11/308.
+/*
+ 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 "NSResponder_SKExtensions.h"
+
+
[EMAIL PROTECTED] NSResponder (SKExtensions)
+- (BOOL)isDescendantOf:(NSView *)aView { return NO; }
[EMAIL PROTECTED]
Modified: trunk/SKApplication.h
===================================================================
--- trunk/SKApplication.h 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKApplication.h 2008-11-03 14:06:54 UTC (rev 4910)
@@ -60,8 +60,3 @@
enum {
SKRemoteButtonEvent = 1
};
-
[EMAIL PROTECTED] NSResponder (SKMagnifyWheel)
-- (void)magnifyWheel:(NSEvent *)theEvent;
-- (void)remoteButtonPressed:(NSEvent *)theEvent;
[EMAIL PROTECTED]
Modified: trunk/SKApplication.m
===================================================================
--- trunk/SKApplication.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKApplication.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -41,6 +41,7 @@
#import "SKPDFView.h"
#import "NSString_SKExtensions.h"
#import "NSMenu_SKExtensions.h"
+#import "NSResponder_SKExtensions.h"
NSString *SKApplicationStartsTerminatingNotification =
@"SKApplicationStartsTerminatingNotification";
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKMainWindowController.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -100,6 +100,7 @@
#import "SKUnarchiveFromDataArrayTransformer.h"
#import "RemoteControl.h"
#import "NSView_SKExtensions.h"
+#import "NSResponder_SKExtensions.h"
#import "SKPDFOutline.h"
#define MULTIPLICATION_SIGN_CHARACTER 0x00d7
@@ -149,15 +150,6 @@
static NSString *SKDisableAnimatedSearchHighlightKey =
@"SKDisableAnimatedSearchHighlight";
[EMAIL PROTECTED] NSResponder (SKExtensions)
-- (BOOL)isDescendantOf:(NSView *)aView;
[EMAIL PROTECTED]
-
[EMAIL PROTECTED] NSResponder (SKExtensions)
-- (BOOL)isDescendantOf:(NSView *)aView { return NO; }
[EMAIL PROTECTED]
-
-
@interface SKMainWindowController (SKPrivate)
- (void)setupToolbar;
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKPDFDocument.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -73,6 +73,7 @@
#import "SKSnapshotWindowController.h"
#import "NSDocument_SKExtensions.h"
#import "SKApplication.h"
+#import "NSResponder_SKExtensions.h"
#define BUNDLE_DATA_FILENAME @"data"
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKPDFView.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -67,6 +67,7 @@
#import "PDFDocument_SKExtensions.h"
#import "PDFDisplayView_SKExtensions.h"
#import "SKAccessibilityFauxUIElement.h"
+#import "NSResponder_SKExtensions.h"
#import "NSEvent_SKExtensions.h"
#import "SKLineInspector.h"
@@ -117,20 +118,6 @@
#pragma mark -
[EMAIL PROTECTED] NSResponder (SKLeopardPrivate)
-- (void)magnifyWithEvent:(NSEvent *)theEvent;
-- (void)rotateWithEvent:(NSEvent *)theEvent;
-- (void)beginGestureWithEvent:(NSEvent *)theEvent;
-- (void)endGestureWithEvent:(NSEvent *)theEvent;
[EMAIL PROTECTED]
-
[EMAIL PROTECTED] NSEvent (SKLeopardPrivate)
-- (float)magnification;
-- (float)rotation;
[EMAIL PROTECTED]
-
-#pragma mark -
-
@interface PDFView (SKLeopardPrivate)
- (void)addTooltipsForVisiblePages;
@end
Modified: trunk/SKSecondaryPDFView.m
===================================================================
--- trunk/SKSecondaryPDFView.m 2008-11-03 13:17:16 UTC (rev 4909)
+++ trunk/SKSecondaryPDFView.m 2008-11-03 14:06:54 UTC (rev 4910)
@@ -42,6 +42,8 @@
#import "PDFAnnotation_SKExtensions.h"
#import "PDFPage_SKExtensions.h"
#import "SKStringConstants.h"
+#import "NSResponder_SKExtensions.h"
+#import "NSEvent_SKExtensions.h"
@interface NSResponder (BDSKGesturesPrivate)
Modified: trunk/Skim.xcodeproj/project.pbxproj
===================================================================
--- trunk/Skim.xcodeproj/project.pbxproj 2008-11-03 13:17:16 UTC (rev
4909)
+++ trunk/Skim.xcodeproj/project.pbxproj 2008-11-03 14:06:54 UTC (rev
4910)
@@ -48,6 +48,7 @@
CE07158C0B8A3D6500733CC8 /* PDFDocument.icns in Resources */ =
{isa = PBXBuildFile; fileRef = CE07158A0B8A3D6300733CC8 /* PDFDocument.icns */;
};
CE0859D20DAE912500760AFC /* SKSnapshotPageCell.m in Sources */
= {isa = PBXBuildFile; fileRef = CE0859D10DAE912500760AFC /*
SKSnapshotPageCell.m */; };
CE09FC3C0E3886C100BDF413 /* SKRuntime.m in Sources */ = {isa =
PBXBuildFile; fileRef = CE09FC3B0E3886C100BDF413 /* SKRuntime.m */; };
+ CE0A3C8E0EBF3AAA00526C74 /* NSResponder_SKExtensions.m in
Sources */ = {isa = PBXBuildFile; fileRef = CE0A3C8D0EBF3AAA00526C74 /*
NSResponder_SKExtensions.m */; };
CE0EB4D60DD054DC0034DF92 /* NSInvocation_SKExtensions.m in
Sources */ = {isa = PBXBuildFile; fileRef = CE0EB4D50DD054DC0034DF92 /*
NSInvocation_SKExtensions.m */; };
CE0ECCDA0DE7188C006EEDDB /* Templates in Copy Files: Shared
Support */ = {isa = PBXBuildFile; fileRef = CE0ECCD40DE71868006EEDDB /*
Templates */; };
CE0ECD1C0DE73604006EEDDB /* NSDocument_SKExtensions.m in
Sources */ = {isa = PBXBuildFile; fileRef = CE0ECD1B0DE73604006EEDDB /*
NSDocument_SKExtensions.m */; };
@@ -461,6 +462,8 @@
CE0859D00DAE912500760AFC /* SKSnapshotPageCell.h */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path =
SKSnapshotPageCell.h; sourceTree = "<group>"; };
CE0859D10DAE912500760AFC /* SKSnapshotPageCell.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKSnapshotPageCell.m; sourceTree = "<group>"; };
CE09FC3B0E3886C100BDF413 /* SKRuntime.m */ = {isa =
PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path
= SKRuntime.m; sourceTree = "<group>"; };
+ CE0A3C8C0EBF3AAA00526C74 /* NSResponder_SKExtensions.h */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h;
path = NSResponder_SKExtensions.h; sourceTree = "<group>"; };
+ CE0A3C8D0EBF3AAA00526C74 /* NSResponder_SKExtensions.m */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =
sourcecode.c.objc; path = NSResponder_SKExtensions.m; sourceTree = "<group>"; };
CE0EB4D40DD054DC0034DF92 /* NSInvocation_SKExtensions.h */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h;
path = NSInvocation_SKExtensions.h; sourceTree = "<group>"; };
CE0EB4D50DD054DC0034DF92 /* NSInvocation_SKExtensions.m */ =
{isa = PBXFileReference; fileEncoding = 4; lastKnownFileType =
sourcecode.c.objc; path = NSInvocation_SKExtensions.m; sourceTree = "<group>";
};
CE0ECCD40DE71868006EEDDB /* Templates */ = {isa =
PBXFileReference; lastKnownFileType = folder; path = Templates; sourceTree =
"<group>"; };
@@ -1570,6 +1573,8 @@
CEA450F30E47A87500D161AD /*
NSLayoutManager_SKExtensions.m */,
CE3400AA0E0034DF00A7FFE6 /*
NSMenu_SKExtensions.h */,
CE3400AB0E0034DF00A7FFE6 /*
NSMenu_SKExtensions.m */,
+ CE0A3C8C0EBF3AAA00526C74 /*
NSResponder_SKExtensions.h */,
+ CE0A3C8D0EBF3AAA00526C74 /*
NSResponder_SKExtensions.m */,
CE070EA00B89039700733CC8 /*
NSScrollView_SKExtensions.h */,
CE070EA10B89039700733CC8 /*
NSScrollView_SKExtensions.m */,
CEE54F6E0DA3FBE00037169F /*
NSSegmentedControl_SKExtensions.h */,
@@ -2124,6 +2129,7 @@
CE51630B0EAB5A1A009FA237 /*
SKSegmentedControl.m in Sources */,
CED6A3120EADF37800E8CD11 /*
NSImageCell_SKExtensions.m in Sources */,
CEE0F5EB0EBB3DEC000A7A8C /*
SKLevelIndicatorCell.m in Sources */,
+ CE0A3C8E0EBF3AAA00526C74 /*
NSResponder_SKExtensions.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit