I’ve never used NSThread before and I was wondering if it was possible to pass arguments into it and if so, how? For example:
NSObject *phrase = @"I JUST MADE IT THROUGH TO THE THREAD METHOD!";
[NSThread detachNewThreadSelector:@selector (run_thread)
toTarget:self
withObject:phrase];
then
-(void)run_thread
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"RECORD FILE PATH ----> %@", phrase);
[pool drain];
}
I think you see what I’m trying to do. Any advice?
You’re almost there: