Here is a code segment I wrote:
The application seems to crash the instant I make that call, even though all parameters check out before the call. Any ideas? Something fishy in the selector syntax (most example use a selector to a method in the current class, here I use a selector in a different class)?
Thanks!
Code:
MyProcessorClass *myInstance = [[MyProcessorClass alloc] init];
// Set some instance variables of myInstance
myInstance.myDelegate = self; // current object implements a delegate
// Start the thread to do the processing...
// "info" is a NSDictionary
[NSThread detachNewThreadSelector: @selector(MyProcessorClass::doTheWork toTarget:myInstance withObject:info];
The application seems to crash the instant I make that call, even though all parameters check out before the call. Any ideas? Something fishy in the selector syntax (most example use a selector to a method in the current class, here I use a selector in a different class)?
Thanks!