I want to pass two arguments to method with NSThread. I tried using this third answer. But unfortunatlly that code was not working well because andKeys:
method is not available.
[NSThread detachNewThreadSelector:@selector(DownloadCheckServerPath:DirectoryName:) toTarget:self withObject:"How to pass two objects"];
So how should I called -(void)DownloadCheckServerPath:(NSString *)serverPath DirectoryName:(NSString *)directoryName this method in Sector through NSThread. ?
You can’t pass multiple arguments to a method which is invoked by this message send. Workaround: use collections. One argument is more than enough.
Also: don’t begin selector names with capital letters. That’s for classes only (and it’s really ugly, isn’t it?)