[Mysql-cocoa-users] fetch2DResultAsType
Brought to you by:
sergecohen
|
From: <ces...@ma...> - 2003-03-31 17:00:51
|
Hi I'm new using cocoa and SMySQL.framework.
Im having this problem, im tryng to use this instance method=20
"fetch2DResultAsType" and in the compilation PB shows this error:
HTMLView.m:42: `MCPTypeArray' undeclared (first use in this function)
HTMLView.m:42: (Each undeclared identifier is reported only once
HTMLView.m:42: for each function it appears in.)
HTMLView.m:42: warning: `SMySQLResult' does not respond to=20
`fetch2DResultAsType:'
The code is:
- (NSArray *)devuelvobd:(NSString *)texto
{
SMySQLConnection *conexion =3D [SMySQLConnection alloc];
SMySQLResult *resultado;
NSMutableArray *fila =3D [[NSMutableArray alloc] init];
conexion =3D [conexion initToHost:@"xxx.xxx.xxx.xxx" =
withLogin:@"xxx"=20
password:@"xxx" usingPort:3306];
[conexion selectDB:@"xxx"];
resultado =3D [conexion queryString:texto];
fila =3D [resultado fetch2DResultAsType:MCPTypeArray];
return fila;
}
in the documentation i read that is declared in "MCPResultPlus.h"
I can=B4t find this header on the source.
Help apreciated.
Thanks and sorry for my english.
C=E9sar Escolar
Spain
|