Re: [Mysql-cocoa-users] fetch2DResultAsType
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2003-04-02 10:42:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear C=E9sar,=0D =0D The cause is that the documentation you find on the website is for the =0D= version 2 of the framework, and it looks like you downloaded the =0D version 1 (version 2 names starts with MCP, when SMySQL is in version =0D= 1).=0D =0D Solution:=0D Get version 2 (in binary or sources):=0D http://prdownloads.sourceforge.net/mysql-cocoa/ =0D SMySQL_b2.0.0.tgz?download=0D http://prdownloads.sourceforge.net/mysql-cocoa/ =0D SMySQL_s2.0.0.tgz?download=0D =0D Don't froget you have to replace SMySQLConnection by MCPConnection, and = =0D SMySQLResult by MCPResult.=0D =0D Hope I've been clear enough.=0D =0D Serge.=0D =0D PS: The ResultPlus category is only in version 2, so you really need =0D= version 2.=0D =0D =0D Le lundi, 31 mars 2003, =E0 19:00 Europe/Amsterdam, C=E9sar Escolar a = =E9crit =0D :=0D =0D > Hi I'm new using cocoa and SMySQL.framework.=0D >=0D > Im having this problem, im tryng to use this instance method =0D > "fetch2DResultAsType" and in the compilation PB shows this error:=0D >=0D > HTMLView.m:42: `MCPTypeArray' undeclared (first use in this function)=0D= > HTMLView.m:42: (Each undeclared identifier is reported only once=0D > HTMLView.m:42: for each function it appears in.)=0D > HTMLView.m:42: warning: `SMySQLResult' does not respond to =0D > `fetch2DResultAsType:'=0D >=0D > The code is:=0D >=0D > - (NSArray *)devuelvobd:(NSString *)texto=0D >=0D > {=0D > SMySQLConnection *conexion =3D [SMySQLConnection alloc];=0D > SMySQLResult *resultado;=0D > NSMutableArray *fila =3D [[NSMutableArray alloc] init];=0D >=0D > conexion =3D [conexion initToHost:@"xxx.xxx.xxx.xxx" =0D > withLogin:@"xxx" password:@"xxx" usingPort:3306];=0D > [conexion selectDB:@"xxx"];=0D > resultado =3D [conexion queryString:texto];=0D >=0D > fila =3D [resultado fetch2DResultAsType:MCPTypeArray];=0D > return fila;=0D > }=0D >=0D > in the documentation i read that is declared in "MCPResultPlus.h"=0D >=0D > I can=B4t find this header on the source.=0D >=0D > Help apreciated.=0D >=0D > Thanks and sorry for my english.=0D >=0D > C=E9sar Escolar=0D > Spain=0D >=0D >=0D >=0D > -------------------------------------------------------=0D > This SF.net email is sponsored by: ValueWeb:=0D > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!=0D > No other company gives more support or power for your dedicated server=0D= > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/=0D > _______________________________________________=0D > Mysql-cocoa-users mailing list=0D > Mys...@li...=0D > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users=0D >=0D >=0D - ----------------------------------------------------=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D - ----------------------------------------------------=0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Darwin) iD8DBQE+ir6w5EPeG5y7WPsRAuwWAJ4knUZcMlykwd5rnasaHR7qnXASRQCg+ZdN L8d5GK511EI+TkR4LupORyI=3D =3D3eWU -----END PGP SIGNATURE----- |