Revision: 7299
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7299&view=rev
Author:   hofman
Date:     2011-06-21 12:31:41 +0000 (Tue, 21 Jun 2011)

Log Message:
-----------
check for segmented control class instead of selectedTag method, because the 
latter is always defined

Modified Paths:
--------------
    trunk/SKFindController.m

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-06-21 11:13:31 UTC (rev 7298)
+++ trunk/SKFindController.m    2011-06-21 12:31:41 UTC (rev 7299)
@@ -218,7 +218,7 @@
 
 - (IBAction)find:(id)sender {
     NSStringCompareOptions options = 0;
-    if ([sender respondsToSelector:@selector(selectedTag)] && [sender 
selectedTag] == 0)
+    if ([sender isKindOfClass:[NSSegmentedControl class]] && [sender 
selectedTag] == 0)
         options |= NSBackwardsSearch;
     [self findWithOptions:options];
 }


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to