I have been a Java programmer for years but only iPhone/Obj-c for a few months. Every time I think I'm comfortable with the language something weird happens. Why does the following generate a "Incompatible types in initialisation" compile error? It seems so straight forward. 'double' is a primitive right?!?
-(void) testCalling{
double myDoub = [self functionReturningDouble:3.0];
}
-(double) functionReturningDouble:(double) input{
return 1.0;
}