The following will compile but if run it will crash.
-(void) testFunc : (NSString *)s{
NSLog(@"%@", s);
}
What's wrong with this code?
I call the function like this:
NSString *msg = @"This is a message";
[self performSelector:@selector(testFunc) withObject:msg afterDelay:0];
[msg release];