How to pass a variable through a selector?
- by Sheehan Alam
I have a method
-(void)myMethod:(MyObject*)obj
And I am detaching a new thread
[NSThread detachNewThreadSelector:@selector(myMethod) toTarget:self withObject:nil];
How can I pass a MyObject* through @selector(myMethod)?