From: Christiaan H. <ho...@us...> - 2005-04-27 12:16:47
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7944 Modified Files: BDSKTextImportController.m Log Message: Use an invocation for the didEndSelector rather than objc-msgSend Index: BDSKTextImportController.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BDSKTextImportController.m,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** BDSKTextImportController.m 26 Apr 2005 18:14:33 -0000 1.25 --- BDSKTextImportController.m 27 Apr 2005 12:16:34 -0000 1.26 *************** *** 401,405 **** // the user cancelled. As we don't end the main sheet we have to call the didEndSelector ourselves ! objc_msgSend(theModalDelegate, theDidEndSelector, sheet, 0, theContextInfo); } --- 401,411 ---- // the user cancelled. As we don't end the main sheet we have to call the didEndSelector ourselves ! NSMethodSignature *signature = [theModalDelegate methodSignatureForSelector:theDidEndSelector]; ! NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; ! [invocation setSelector:theDidEndSelector]; ! [invocation setArgument:&sheet atIndex:2]; ! [invocation setArgument:&returnCode atIndex:3]; ! [invocation setArgument:&theContextInfo atIndex:4]; ! [invocation invokeWithTarget:theModalDelegate]; } |