Revision: 18237
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18237&view=rev
Author:   hofman
Date:     2011-11-24 11:02:07 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
avoid using convenience method for invocation

Modified Paths:
--------------
    trunk/bibdesk/BDSKFileMatcher.m
    trunk/bibdesk/BDSKTeXTask.m
    trunk/bibdesk/NSInvocation_BDSKExtensions.h
    trunk/bibdesk/NSInvocation_BDSKExtensions.m

Modified: trunk/bibdesk/BDSKFileMatcher.m
===================================================================
--- trunk/bibdesk/BDSKFileMatcher.m     2011-11-24 07:36:27 UTC (rev 18236)
+++ trunk/bibdesk/BDSKFileMatcher.m     2011-11-24 11:02:07 UTC (rev 18237)
@@ -610,7 +610,8 @@
 
     // disable the stop button
     BOOL state = NO;
-    NSInvocation *invocation = [NSInvocation invocationWithTarget:abortButton 
selector:@selector(setEnabled:) argument:&state];
+    NSInvocation *invocation = [NSInvocation invocationWithTarget:abortButton 
selector:@selector(setEnabled:)];
+    [invocation setArgument:&state atIndex:2];
     [invocation performSelectorOnMainThread:@selector(invoke) withObject:nil 
waitUntilDone:YES];
     
     [indexingLock unlock];

Modified: trunk/bibdesk/BDSKTeXTask.m
===================================================================
--- trunk/bibdesk/BDSKTeXTask.m 2011-11-24 07:36:27 UTC (rev 18236)
+++ trunk/bibdesk/BDSKTeXTask.m 2011-11-24 11:02:07 UTC (rev 18237)
@@ -206,7 +206,8 @@
     taskShouldStartInvocation = nil;
     
     if ([delegate respondsToSelector:theSelector]) {
-        taskShouldStartInvocation = [[NSInvocation 
invocationWithTarget:delegate selector:theSelector argument:&self] retain];
+        taskShouldStartInvocation = [[NSInvocation 
invocationWithTarget:delegate selector:theSelector] retain];
+        [taskShouldStartInvocation setArgument:&self atIndex:2];
     }
     
     [taskFinishedInvocation autorelease];
@@ -214,7 +215,8 @@
     theSelector = @selector(texTask:finishedWithResult:);
 
     if ([delegate respondsToSelector:theSelector]) {
-        taskFinishedInvocation = [[NSInvocation invocationWithTarget:delegate 
selector:theSelector argument:&self] retain];
+        taskFinishedInvocation = [[NSInvocation invocationWithTarget:delegate 
selector:theSelector] retain];
+        [taskFinishedInvocation setArgument:&self atIndex:2];
     }        
 }
 

Modified: trunk/bibdesk/NSInvocation_BDSKExtensions.h
===================================================================
--- trunk/bibdesk/NSInvocation_BDSKExtensions.h 2011-11-24 07:36:27 UTC (rev 
18236)
+++ trunk/bibdesk/NSInvocation_BDSKExtensions.h 2011-11-24 11:02:07 UTC (rev 
18237)
@@ -41,5 +41,4 @@
 
 @interface NSInvocation (BDSKExtensions)
 + (id)invocationWithTarget:(id)target selector:(SEL)selector;
-+ (id)invocationWithTarget:(id)target selector:(SEL)selector argument:(void 
*)argument;
 @end

Modified: trunk/bibdesk/NSInvocation_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSInvocation_BDSKExtensions.m 2011-11-24 07:36:27 UTC (rev 
18236)
+++ trunk/bibdesk/NSInvocation_BDSKExtensions.m 2011-11-24 11:02:07 UTC (rev 
18237)
@@ -49,10 +49,4 @@
     return invocation;
 }
 
-+ (id)invocationWithTarget:(id)target selector:(SEL)selector argument:(void 
*)argument {
-    NSInvocation *invocation = [self invocationWithTarget:target 
selector:selector];
-    [invocation setArgument:argument atIndex:2];
-    return invocation;
-}
-
 @end

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to