Revision: 7217
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7217&view=rev
Author:   hofman
Date:     2011-04-28 13:12:33 +0000 (Thu, 28 Apr 2011)

Log Message:
-----------
simplify find field editor class even more, set fieldeditor flag when creating

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

Modified: trunk/SKFindController.m
===================================================================
--- trunk/SKFindController.m    2011-04-28 11:30:53 UTC (rev 7216)
+++ trunk/SKFindController.m    2011-04-28 13:12:33 UTC (rev 7217)
@@ -209,8 +209,10 @@
 }
 
 - (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)anObject {
-    if (fieldEditor == nil)
+    if (fieldEditor == nil) {
         fieldEditor = [[SKFindFieldEditor alloc] init];
+        [fieldEditor setFieldEditor:YES];
+    }
     return fieldEditor;
 }
 

Modified: trunk/SKFindFieldEditor.m
===================================================================
--- trunk/SKFindFieldEditor.m   2011-04-28 11:30:53 UTC (rev 7216)
+++ trunk/SKFindFieldEditor.m   2011-04-28 13:12:33 UTC (rev 7217)
@@ -41,15 +41,6 @@
 
 @implementation SKFindFieldEditor
 
-- (id)initWithFrame:(NSRect)frameRect {
-       self = [super initWithFrame:frameRect];
-    if (self) {
-               [self setFieldEditor:YES];
-               [self setUsesFindPanel:NO];
-       }
-       return self;
-}
-
 - (BOOL)respondsToSelector:(SEL)aSelector {
     return aSelector != @selector(performFindPanelAction:) && [super 
respondsToSelector:aSelector];
 }


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

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to