Incompatible types in return ?
file.h
struct typeCSVFile {
NSString *nssPath;
NSString *nssData;
NSString ***p_nssData;//
int iRows;
int iCols;
};
....
struct typeCSVFile structCSVFile;
....
-(struct structCSVFile) fileCSVRead;
file.m
-(struct structCSVFile) fileCSVRead{
...
return structCSVFile; // <-- Incompatible types in return
}
Possibly, you mean:
and:
The type name is
struct typeCSVFile, whilestructCSVFileis an instance of that type. You could also think of usingtypedefto get rid of thestructpart: