Revision: 7601
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7601&view=rev
Author:   hofman
Date:     2011-12-26 11:05:33 +0000 (Mon, 26 Dec 2011)
Log Message:
-----------
move some method for type select to private

Modified Paths:
--------------
    trunk/SKTypeSelectHelper.h
    trunk/SKTypeSelectHelper.m

Modified: trunk/SKTypeSelectHelper.h
===================================================================
--- trunk/SKTypeSelectHelper.h  2011-12-25 15:51:58 UTC (rev 7600)
+++ trunk/SKTypeSelectHelper.h  2011-12-26 11:05:33 UTC (rev 7601)
@@ -68,15 +68,7 @@
 - (void)rebuildTypeSelectSearchCache;
 
 - (BOOL)processKeyDownEvent:(NSEvent *)keyEvent;
-- (void)searchWithEvent:(NSEvent *)keyEvent;
-- (void)repeatSearch;
-- (void)cancelSearch;
 
-- (BOOL)isTypeSelectEvent:(NSEvent *)keyEvent;
-- (BOOL)isSearchEvent:(NSEvent *)keyEvent;
-- (BOOL)isRepeatEvent:(NSEvent *)keyEvent;
-- (BOOL)isCancelEvent:(NSEvent *)keyEvent;
-
 @end
 
 

Modified: trunk/SKTypeSelectHelper.m
===================================================================
--- trunk/SKTypeSelectHelper.m  2011-12-25 15:51:58 UTC (rev 7600)
+++ trunk/SKTypeSelectHelper.m  2011-12-26 11:05:33 UTC (rev 7601)
@@ -52,6 +52,13 @@
 #pragma mark -
 
 @interface SKTypeSelectHelper (SKPrivate)
+- (void)searchWithEvent:(NSEvent *)keyEvent;
+- (void)repeatSearch;
+- (void)cancelSearch;
+- (BOOL)isTypeSelectEvent:(NSEvent *)keyEvent;
+- (BOOL)isSearchEvent:(NSEvent *)keyEvent;
+- (BOOL)isRepeatEvent:(NSEvent *)keyEvent;
+- (BOOL)isCancelEvent:(NSEvent *)keyEvent;
 - (NSTimeInterval)timeoutInterval;
 - (NSArray *)searchCache;
 - (void)searchWithStickyMatch:(BOOL)allowUpdate;
@@ -129,6 +136,8 @@
     return NO;
 }
 
+#pragma mark Private methods
+
 - (void)searchWithEvent:(NSEvent *)keyEvent {
     NSWindow *keyWin = [NSApp keyWindow];
     NSText *fieldEditor = [keyWin fieldEditor:YES forObject:self];
@@ -174,10 +183,6 @@
         [self typeSelectCleanTimeout:timer];
 }
 
-- (BOOL)isTypeSelectEvent:(NSEvent *)keyEvent {
-    return [self isSearchEvent:keyEvent] || [self isRepeatEvent:keyEvent] || 
[self isCancelEvent:keyEvent];
-}
-
 - (BOOL)isSearchEvent:(NSEvent *)keyEvent {
     if ([keyEvent type] != NSKeyDown)
         return NO;
@@ -217,8 +222,6 @@
     return modifierFlags == 0 && character == CANCEL_CHARACTER;
 }
 
-#pragma mark Private methods
-
 // See 
http://www.mactech.com/articles/mactech/Vol.18/18.10/1810TableTechniques/index.html
 - (NSTimeInterval)timeoutInterval {
     NSInteger keyThreshTicks = [[NSUserDefaults standardUserDefaults] 
integerForKey:@"InitialKeyRepeat"];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to