How to pass a variable through a selector?
Posted
by Sheehan Alam
on Stack Overflow
See other posts from Stack Overflow
or by Sheehan Alam
Published on 2010-03-31T01:02:43Z
Indexed on
2010/03/31
8:03 UTC
Read the original article
Hit count: 261
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)?
© Stack Overflow or respective owner