Revision: 18235
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18235&view=rev
Author:   hofman
Date:     2011-11-23 15:38:59 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
don't set invocation argument in initializer

Modified Paths:
--------------
    trunk/bibdesk/BDSKConditionController.m
    trunk/bibdesk/BDSKEditor.m
    trunk/bibdesk/BDSKFilterController.m
    trunk/bibdesk/BDSKTemplateDocument.m

Modified: trunk/bibdesk/BDSKConditionController.m
===================================================================
--- trunk/bibdesk/BDSKConditionController.m     2011-11-23 11:16:20 UTC (rev 
18234)
+++ trunk/bibdesk/BDSKConditionController.m     2011-11-23 15:38:59 UTC (rev 
18235)
@@ -370,7 +370,8 @@
 
 - (void)commitEditingWithDelegate:(id)delegate 
didCommitSelector:(SEL)didCommitSelector contextInfo:(void *)contextInfo {
     if (delegate && didCommitSelector) {
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector];
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&contextInfo atIndex:4];
         return [objectController commitEditingWithDelegate:self 
didCommitSelector:@selector(editor:didCommit:contextInfo:) 
contextInfo:[invocation retain]];
     }

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2011-11-23 11:16:20 UTC (rev 18234)
+++ trunk/bibdesk/BDSKEditor.m  2011-11-23 15:38:59 UTC (rev 18235)
@@ -371,7 +371,8 @@
     BOOL didCommit = [self commitEditing];
     if (delegate && didCommitSelector) {
         // - (void)editor:(id)editor didCommit:(BOOL)didCommit 
contextInfo:(void *)contextInfo
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector];
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&didCommit atIndex:3];
         [invocation setArgument:&contextInfo atIndex:4];
         [invocation invoke];

Modified: trunk/bibdesk/BDSKFilterController.m
===================================================================
--- trunk/bibdesk/BDSKFilterController.m        2011-11-23 11:16:20 UTC (rev 
18234)
+++ trunk/bibdesk/BDSKFilterController.m        2011-11-23 15:38:59 UTC (rev 
18235)
@@ -219,7 +219,8 @@
     BOOL didCommit = [self commitEditing];
     if (delegate && didCommitSelector) {
         // - (void)editor:(id)editor didCommit:(BOOL)didCommit 
contextInfo:(void *)contextInfo
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:didCommitSelector];
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&didCommit atIndex:3];
         [invocation setArgument:&contextInfo atIndex:4];
         [invocation invoke];

Modified: trunk/bibdesk/BDSKTemplateDocument.m
===================================================================
--- trunk/bibdesk/BDSKTemplateDocument.m        2011-11-23 11:16:20 UTC (rev 
18234)
+++ trunk/bibdesk/BDSKTemplateDocument.m        2011-11-23 15:38:59 UTC (rev 
18235)
@@ -1079,8 +1079,9 @@
             [super canCloseDocumentWithDelegate:delegate 
shouldCloseSelector:shouldCloseSelector contextInfo:contextInfo];
         }
     } else if (delegate && shouldCloseSelector) {
-        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:shouldCloseSelector argument:&self];
+        NSInvocation *invocation = [NSInvocation invocationWithTarget:delegate 
selector:shouldCloseSelector];
         BOOL no = NO;
+        [invocation setArgument:&self atIndex:2];
         [invocation setArgument:&no atIndex:3];
         [invocation setArgument:&contextInfo atIndex:4];
         [invocation invoke]; 

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