Revision: 5650
http://skim-app.svn.sourceforge.net/skim-app/?rev=5650&view=rev
Author: hofman
Date: 2009-09-03 23:31:33 +0000 (Thu, 03 Sep 2009)
Log Message:
-----------
make pdfview first responder on mouse down, because 10.6 doesn't do that
automatically anymore
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2009-09-03 22:48:32 UTC (rev 5649)
+++ trunk/SKPDFView.m 2009-09-03 23:31:33 UTC (rev 5650)
@@ -1041,6 +1041,9 @@
if ([activeAnnotation isLink])
[self setActiveAnnotation:nil];
+ // 10.6 does not automatically make us firstResponder, that's annoying
+ [[self window] makeFirstResponder:self];
+
mouseDownLoc = [theEvent locationInWindow];
NSUInteger modifiers = [theEvent modifierFlags] &
NSDeviceIndependentModifierFlagsMask;
@@ -2415,6 +2418,10 @@
if (toolMode == SKSelectToolMode && NSIsEmptyRect(selectionRect) == NO
&& selectionPageIndex != NSNotFound)
return YES;
return NO;
+ } else if (action == @selector(cut:)) {
+ if ([activeAnnotation isSkimNote] && [activeAnnotation isMovable])
+ return YES;
+ return NO;
} else if (action == @selector(paste:)) {
return nil != [[NSPasteboard generalPasteboard]
availableTypeFromArray:[NSArray arrayWithObjects:SKSkimNotePboardType,
NSStringPboardType, nil]];
} else if (action == @selector(alternatePaste:)) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit