Ponieważ jestem całkiem nowy ObjC utknąłem na następującą kwestię:Objective-C za pomocą gwintu powoduje: cel nie implementuje selektor
Mam funkcji downloadFile
-(void) downloadFile:(NSMutableArray*)paramArray withDict:(NSMutableDictionary*)options
{
//do stuff
}
chcę uruchomić to jako nici, i dlatego używam tej linii kodu:
NSThread* dLoad = [[NSThread alloc] initWithTarget:self selector:@selector(downloadFile:) object:nil];
[dLoad start];
rzuca mi następujący błąd:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSThread initWithTarget:selector:object:]: target does not implement selector (*** -[LaunchDownload downloadFile:])'
Czego tu brakuje?