Revision: 5717
http://skim-app.svn.sourceforge.net/skim-app/?rev=5717&view=rev
Author: hofman
Date: 2009-09-08 16:19:26 +0000 (Tue, 08 Sep 2009)
Log Message:
-----------
use macro for standard modifier flags
Modified Paths:
--------------
trunk/NSEvent_SKExtensions.m
Modified: trunk/NSEvent_SKExtensions.m
===================================================================
--- trunk/NSEvent_SKExtensions.m 2009-09-08 16:17:36 UTC (rev 5716)
+++ trunk/NSEvent_SKExtensions.m 2009-09-08 16:19:26 UTC (rev 5717)
@@ -39,6 +39,7 @@
#import "NSEvent_SKExtensions.h"
#import <Carbon/Carbon.h>
+#define SKStandardModifierFlagsMask (NSCommandKeyMask | NSAlternateKeyMask |
NSShiftKeyMask | NSControlKeyMask)
@interface NSEvent (SKSnowLeopardDeclarations)
+ (NSUInteger)modifierFlags;
@@ -48,7 +49,7 @@
+ (NSUInteger)standardModifierFlags {
if ([self respondsToSelector:@selector(modifierFlags)])
- return [self modifierFlags] & (NSCommandKeyMask | NSAlternateKeyMask |
NSShiftKeyMask | NSControlKeyMask);
+ return [self modifierFlags] & SKStandardModifierFlagsMask;
NSUInteger flags = 0;
UInt32 currentKeyModifiers = GetCurrentKeyModifiers();
@@ -69,7 +70,7 @@
}
- (NSUInteger)standardModifierFlags {
- return [self modifierFlags] & (NSCommandKeyMask | NSAlternateKeyMask |
NSShiftKeyMask | NSControlKeyMask);
+ return [self modifierFlags] & SKStandardModifierFlagsMask;
}
- (unichar)firstCharacter {
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