mysql-cocoa-users Mailing List for MySQL Objective C API for Cocoa (Page 7)
Brought to you by:
sergecohen
You can subscribe to this list here.
| 2002 |
Jan
(2) |
Feb
|
Mar
(14) |
Apr
(5) |
May
(23) |
Jun
(8) |
Jul
(13) |
Aug
(5) |
Sep
|
Oct
(1) |
Nov
(11) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(9) |
Feb
(6) |
Mar
(13) |
Apr
(2) |
May
(3) |
Jun
|
Jul
(5) |
Aug
(11) |
Sep
(18) |
Oct
(1) |
Nov
(15) |
Dec
(2) |
| 2004 |
Jan
(3) |
Feb
(3) |
Mar
(8) |
Apr
(1) |
May
(2) |
Jun
(3) |
Jul
(15) |
Aug
(36) |
Sep
(5) |
Oct
|
Nov
(6) |
Dec
(2) |
| 2005 |
Jan
(1) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
|
Jun
(7) |
Jul
(3) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2006 |
Jan
(9) |
Feb
(5) |
Mar
(2) |
Apr
(1) |
May
(9) |
Jun
(2) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
(1) |
Nov
|
Dec
(2) |
| 2007 |
Jan
(23) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: John S. <joh...@hw...> - 2004-07-19 21:01:26
|
Was not sure if this list was even used. Have seen little about using this framework. But here goes. Just staring out to try and get this to work. I have a table loaded and displayed in a NSTableView. I have it registered with the notification center so when a user finishes editing a cell, it calls a method called updateTable- the idea being that the changes will be written back to the database. Alas, the notification is being called BEFORE the setObjectValue method, so the data is still old (ie I'm getting it from the array of NSMutableDictionaries. Where is the best place to do this? Perhaps right from the the setObjectValue method? |
|
From: Aaron J. <aj...@ed...> - 2004-07-19 20:41:36
|
Perhaps you should ask a question? On Jul 19, 2004, at 3:39 PM, John Spicer wrote: > just trying out SMysql... help of anyone who's been there > appreciated... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Mysql-cocoa-users mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users |
|
From: John S. <joh...@hw...> - 2004-07-19 20:39:22
|
just trying out SMysql... help of anyone who's been there appreciated... |
|
From: Camille GOUREAU-S. <ca...@lu...> - 2004-07-16 04:13:16
|
Hi, I'm french, and my (our) language uses a lot of accent. I've got a problem with them. Dependin on what computer I use MySQL DB - MySQL Engine - MCPConnection/Result - XCode I obtain different results. I think that tere are some way to register for a type of charcater and not another. Couold somebody please point me to where I could specify that ? in MySQL ? in XCode ? elsewhere ? Many thanks. Camille |
|
From: Aaron J. <aj...@ed...> - 2004-07-09 22:07:20
|
Yeah of course, I should have thought of that. But I think it would=20
actually be quicker to compare the error number to zero.
Thanks,
Aaron
On Jul 9, 2004, at 4:01 PM, Camille GOUREAU-SUIGNARD wrote:
> Hi,
>
> usually, in ObjectiveC, I use :
> if ([[_cnxMySQL getLastErrorMessage]=20
> compare:@""]!=3DNSOrderedSame){NSLog (@"erreur MySQL !!\nquery :=20
> %@\nerror : %@", chaineQuery,[_cnxMySQL getLastErrorMessage]);}
>
> HTH
>
> Camille
>
>
>
> Le 9 juil. 04, =E0 17:51, Aaron Jacobs a =E9crit :
>
>> Using SMySQL, what's the proper way to detect when the MySQL server=20=
>> has raised an error after you issue a query? In the straight-up C=20
>> API I have done:
>>
>> if (mysql_query(handle, query_string))
>> {
>> // We have an error
>> }
>> else
>> {
>> // We're good to go
>> }
>>
>> But from examining the source code for MCPConnection it looks as if=20=
>> whenever there's a query error all that happens is the error code and=20=
>> string are outputted with NSLog and an empty result is returned. How=20=
>> can you distinguish this from a result of a query that just has an=20
>> empty result set? This isn't obvious to me from the documentation.
>>
>> Thanks,
>> Aaron Jacobs
>> aj...@ed...
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email sponsored by Black Hat Briefings & Training.
>> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital=20=
>> self defense, top technical experts, no vendor pitches, unmatched=20
>> networking opportunities. Visit www.blackhat.com
>> _______________________________________________
>> Mysql-cocoa-users mailing list
>> Mys...@li...
>> https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users
>>
|
|
From: Camille GOUREAU-S. <ca...@lu...> - 2004-07-09 20:59:34
|
Hi,
usually, in ObjectiveC, I use :
if ([[_cnxMySQL getLastErrorMessage]=20
compare:@""]!=3DNSOrderedSame){NSLog (@"erreur MySQL !!\nquery :=20
%@\nerror : %@", chaineQuery,[_cnxMySQL getLastErrorMessage]);}
HTH
Camille
Le 9 juil. 04, =E0 17:51, Aaron Jacobs a =E9crit :
> Using SMySQL, what's the proper way to detect when the MySQL server=20
> has raised an error after you issue a query? In the straight-up C API=20=
> I have done:
>
> if (mysql_query(handle, query_string))
> {
> // We have an error
> }
> else
> {
> // We're good to go
> }
>
> But from examining the source code for MCPConnection it looks as if=20
> whenever there's a query error all that happens is the error code and=20=
> string are outputted with NSLog and an empty result is returned. How=20=
> can you distinguish this from a result of a query that just has an=20
> empty result set? This isn't obvious to me from the documentation.
>
> Thanks,
> Aaron Jacobs
> aj...@ed...
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital=20=
> self defense, top technical experts, no vendor pitches, unmatched=20
> networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Mysql-cocoa-users mailing list
> Mys...@li...
> https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users
>
|
|
From: Aaron J. <aj...@ed...> - 2004-07-09 15:51:57
|
Using SMySQL, what's the proper way to detect when the MySQL server has
raised an error after you issue a query? In the straight-up C API I
have done:
if (mysql_query(handle, query_string))
{
// We have an error
}
else
{
// We're good to go
}
But from examining the source code for MCPConnection it looks as if
whenever there's a query error all that happens is the error code and
string are outputted with NSLog and an empty result is returned. How
can you distinguish this from a result of a query that just has an
empty result set? This isn't obvious to me from the documentation.
Thanks,
Aaron Jacobs
aj...@ed...
|
|
From: Serge C. <ser...@us...> - 2004-07-06 10:44:54
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Aaron;=0D =0D Indeed I have missed Lorenz remark, so thank you very much to point it =0D= to me (and also point to me the ref part dealing with the issue).=0D Now that I have this information I'll patch the source soon to better =0D= take care of the unsigned types.=0D I also modify the issue of TEXT and BLOB being (presently) both =0D considered as NSData (TEXT will be output as NSString).=0D =0D I'm preparing a new version now, which has a small 'entreprise' like =0D layer on top of the connection and result.=0D =0D All this needs a week or two to be finished, this new version will =0D include the above correction (unsigned types and TEXT column).=0D =0D Keep in touch.=0D =0D Serge.=0D =0D PS: I did not managed to retrieve your PGP key from the key-server... =0D= Have you exported it?=0D =0D Le 5 juil. 04, =E0 23:29, Aaron Jacobs a =E9crit :=0D =0D > Serge,=0D >=0D > I am starting development of a Cocoa application which requires = the =0D > use of a MySQL database to store information. Your framework looks =0D= > like a great way to do this, but there is one problem. Our database =0D= > layout uses unsigned integers as primary keys, and thus whatever =0D > framework I use must support unsigned integers. I see on the Updates =0D= > section of mysql-cocoa.sourceforge.net there is a post from August 20, = =0D > 2003 in which you say this is not properly supported in your framework = =0D > as you don't know how to find out from the C API whether an integer is = =0D > signed or not.=0D >=0D > After a little bit of searching, I found out about the = UNSIGNED_FLAG =0D > flag that can be tested against in the flags variable of the =0D > MYSQL_FIELD data structure:=0D >=0D > http://dev.mysql.com/doc/mysql/en/C_API_datatypes.html=0D >=0D > I searched your mailing list and found this post detailing this =0D= > solution:=0D >=0D > http://sourceforge.net/mailarchive/message.php?msg_id=3D5870047=0D >=0D > I must admit that I nearly missed Lorenz's answer in all the = text, so =0D > I figure you may have as well. If that's not the case, is there a =0D > reason that such functionality is not implemented in SMySQL? If that =0D= > is the case, could I expect it to be implemented any time soon? I can = =0D > try to put it together myself and send you a patch if you like, though = =0D > I'm not extremely familiar with your code or API so I don't know how =0D= > well that will come out. Let me know either way.=0D >=0D > Also, if I am mistaken and this is actually implemented in a CVS = =0D > version or something, please let me know so I can get started with the = =0D > latest version.=0D >=0D > Thanks,=0D > Aaron Jacobs=0D > University of Texas at Austin=0D > aj...@ed...=0D >=0D *******************************************=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D *******************************************=0D =0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFA6oKc5EPeG5y7WPsRApXrAJ9P317mHsHvzUD6hGBepdrmpsNIdwCfZ85v gcQk13msCYmSLxNDUwH3zx4=3D =3D319Z -----END PGP SIGNATURE----- |
|
From: Jonathan M. <j.m...@ma...> - 2004-06-29 15:02:57
|
Well NSDictionary is great and data returned by SMySQL is returned in a NSDictionary. You could use a NSDictionary to store the data to the disk but you would miss out on all the relational stuff you get free from a database. It all depends on what your data structure looks like. Jonathan On Jun 29, 2004, at 5:49 AM, Patel, Nilesh M wrote: > First time user of programming in cocoa and loving it. I have been > using and developing apps in cocoa for about 2 months. I was wondering > if anyone had an insight if mysql is a better storage/retrieve > database for storing/retrieving large amounts of data than > NSDictionary? Can NSDictionary due the same thing as mysql? Any > comments will be greatful. > > > -----Original Message----- > From: mys...@li... > [mailto:mys...@li...]On Behalf Of > mys...@li... > Sent: Thursday, June 24, 2004 12:08 PM > To: Patel, Nilesh M > Subject: Welcome to the "Mysql-cocoa-users" mailing list (Digest mode) > > > Welcome to the Mys...@li... mailing list! > > To post to this list, send your email to: > > mys...@li... > > General information about the mailing list is at: > > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users > > If you ever want to unsubscribe or change your options (eg, switch to > or from digest mode, change your password, etc.), visit your > subscription page at: > > > https://lists.sourceforge.net/lists/options/mysql-cocoa-users/ > nilesh.m.patel%40questdiagnostics.com > > > You can also make such adjustments via email by sending a message to: > > Mys...@li... > > with the word `help' in the subject or body (don't include the > quotes), and you will get back a message with instructions. > > You must know your password to change your options (including changing > the password, itself) or to unsubscribe. It is: > > bhanu416 > > If you forget your password, don't worry, you will receive a monthly > reminder telling you what all your lists.sourceforge.net mailing list > passwords are, and how to unsubscribe or change your options. There > is also a button on your options page that will email your current > password to you. > > You may also have your password mailed to you automatically off of the > Web page noted above. > > > ======================================================================= > ======= > The contents of this message, together with any attachments, are > intended only for the use of the person(s) to which they are addressed > and may contain confidential and/or privileged information. Further, > any medical information herein is confidential and protected by law. > It is unlawful for unauthorized persons to use, review, copy, > disclose, or disseminate confidential medical information. If you are > not the intended recipient, immediately advise the sender and delete > this message and any attachments. Any distribution, or copying of this > message, or any attachment, is prohibited. > ======================================================================= > ======= > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Mysql-cocoa-users mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users |
|
From: Patel, N. M <Nil...@qu...> - 2004-06-29 12:49:48
|
=46irst time user of programming in cocoa and loving it. I have been = using and developing apps in cocoa for about 2 months. I was wondering = if anyone had an insight if mysql is a better storage/retrieve database= = =66or storing/retrieving large amounts of data than NSDictionary=3F Can= = NSDictionary due the same thing as mysql=3F Any comments will be = greatful. -----Original Message----- =46rom: mys...@li... [mailto:mys...@li...]On Behalf Of mys...@li... Sent: Thursday, June 24, 2004 12:08 PM To: Patel, Nilesh M Subject: Welcome to the "Mysql-cocoa-users" mailing list (Digest mode) Welcome to the Mys...@li... mailing list! To post to this list, send your email to: mys...@li... General information about the mailing list is at: https://lists.sourceforge.net/lists/listinfo/mysql-cocoa-users If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: = https://lists.sourceforge.net/lists/options/mysql-cocoa-users/nilesh.m.= patel%40questdiagnostics.com You can also make such adjustments via email by sending a message to: Mys...@li... with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: bhanu416 If you forget your password, don't worry, you will receive a monthly reminder telling you what all your lists.sourceforge.net mailing list passwords are, and how to unsubscribe or change your options. There is also a button on your options page that will email your current password to you. You may also have your password mailed to you automatically off of the Web page noted above. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D The contents of this message, together with any attachments, are = intended only for the use of the person(s) to which they are addressed = and may contain confidential and/or privileged information. Further, an= y= medical information herein is confidential and protected by law. It is= = unlawful for unauthorized persons to use, review, copy, disclose, or = disseminate confidential medical information. If you are not the = intended recipient, immediately advise the sender and delete this = message and any attachments. Any distribution, or copying of this = message, or any attachment, is prohibited. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D |
|
From: Raghu n. <ra...@ng...> - 2004-06-11 11:41:14
|
Hello all, I am working on a KBS system of my personal. For this I require some kind of a input system with which I can enter my data in the mysql database with GUI. The data is very intensive so I can use most of the fancy features out their. I am also using cocoamysql for database maintainance. I am also up for some programming, but not an intensive one. If possible, can some one give me a quick start by specifying a starting point for me. With regards Raghu |
|
From: Lorenz T. <lo...@te...> - 2004-05-05 11:27:52
|
CocoaMySQL is happy to use the SMySQL framework to connect to the MySQL=20= server. Thanks again for developing this great framework! By now CocoaMySQL is still using version 1 of the framework because I=20 haven't had the time to switch to version 2 and do intensive testing if=20= it's still working well. But as far as I know there aren't many changes=20= apart of the new class names. The next release will implement the new=20 version of the framework. But the current version also shows many of the things you can do with=20 the framework. Maybe you should look especially on the classes=20 TableDocument, TableContent and CustomQuery. After having linked to the framework, you just have to connect to your=20= database server, then you can send every type of MySQL command to the=20 server. So the most important thing you have to know are the MySQL=20 commands. You find some information about how to include the framework in XCode=20 on the following website: http://www.forbiddenbyte.co.uk/cocoa/mysql-cocoa_bundling_in_xcode.pdf Good luck with your project! Best Regards, Lorenz On 5. May 2004, at 05:05,=20 mys...@li... wrote: > > Message: 1 > Cc: mys...@li... > From: Serge Cohen <ser...@us...> > Date: Wed, 5 May 2004 00:25:56 +0200 > To: =3D?ISO-8859-1?Q?Daniel_Arc=3DE9?=3D <da...@ri...> > Subject: [Mysql-cocoa-users] Re: Newbie but trying - question about=20 > SMySQL_bundled > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Daniel;=3D0D > =3D0D > MySQL_Display was based on the version 1.0 of the framework... There=20= > =3D0D > have been big API change when I went to 2.0, and then I've decided to=20= > =3D0D=3D > > stop the MySQL_Display, because the open source project CocoaMySQL was=20= > =3D0D=3D > > doing the same better, and was using the framework... so it was both a=20= > =3D0D=3D > > better application and a better example on how to use the framework=20 > (as =3D0D=3D > > the source code is available -it is also on sourceforge : =3D0D > http://cocoamysql.sf.net/ -).=3D0D > =3D0D > Indeed I'm not sure if the CocoaMySQL application is using version 1=20= > or =3D0D=3D > > 2 of the framework, so maybe you want to check that first.=3D0D > =3D0D > For the time being, I'm lacking a tutorial on how to use the=20 > framework, =3D0D=3D > > but I'll try to make one as soon as I have time for that (which might=20= > =3D0D=3D > > not be too soon, unfortunately).=3D0D > =3D0D > One of the biggest diff. between 1. and 2. API is the name of the =3D0D > classes changed (SMySQL prefix is now replaced by MCP prefix, ie. =3D0D > SMySQLResult became MCPResult).=3D0D > =3D0D > Hope this helps=3D0D > =3D0D > Serge.=3D0D > =3D0D > Le 4 mai 04, =3DE0 08:01, Daniel Arc=3DE9 a =3DE9crit :=3D0D > =3D0D >> Dear Mr. Cohen,=3D0D >> =3D0D >> Thank you for having taken the time to develop a Cocoa Framework for=20= >> =3D0D=3D > >> MySQL.=3D0D >> I am currently learning OOP with C# at school, but my real interest=20= >> is =3D > =3D0D >> in=3D0D >> learning Cocoa (something I have to learn by myself).=3D0D >> =3D0D >> I downloaded the source code for MySQL_Display to see how the=20 >> SMySQL=3D0D=3D > >> framework may be used. However, my inexperience prevents me from=3D0D >> successfully building the application.=3D0D >> =3D0D >> I am using the bundled framework and adding it to the MySQL_Display=20= >> =3D0D=3D > >> target=3D0D >> under "Copy Files" as described in the readme file.=3D0D >> =3D0D >> Should I be using one of the other frameworks (static, etc)?=3D0D >> =3D0D >> I get three errors in SMySQLResultView.m related to "SMySQLResult".=20= >> =3D0D=3D > >> They=3D0D >> occur on lines 31 and 49 (parse error before "SMySQLResult") and on=20= >> =3D0D=3D > >> line 50,=3D0D >> (fatal error: Method definition not in a class context).=3D0D >> =3D0D >> Would you have any suggestions as to what to look for? Any pointers=20= >> =3D0D=3D > >> would be=3D0D >> welcome.=3D0D >> =3D0D >> I am learning a tremendous amount from efforts like yours.=3D0D >> =3D0D >> Thanks for your time.=3D0D >> =3D0D >> Daniel Arc=3DE9=3D0D >> =3D0D >> =3D0D >> =3D0D > *******************************************=3D0D > Serge Cohen=3D0D > =3D0D > GPG Key ID: 9CBB58FB=3D0D > *******************************************=3D0D > =3D0D > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (Darwin) > > iD8DBQFAmBh65EPeG5y7WPsRAgcoAJ0c7A+uDtLZqF3iKOMBnz7UXlEnJQCfYYJb > ov2l88wX52VB3nzU1L8yGV8=3D3D > =3D3DG3aN > -----END PGP SIGNATURE----- > --=20 lorenz textor ** sh ** eigerstrasse 21 8200 schaffhausen tf 052 - 624 27 91 ** zh ** schimmelstrasse 5 8003 z=FCrich tf 043 - 333 00 19 ** mobile 076 - 531 71 74 email lo...@te... |
|
From: Serge C. <ser...@us...> - 2004-05-04 22:26:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Daniel;=0D =0D MySQL_Display was based on the version 1.0 of the framework... There =0D have been big API change when I went to 2.0, and then I've decided to =0D= stop the MySQL_Display, because the open source project CocoaMySQL was =0D= doing the same better, and was using the framework... so it was both a =0D= better application and a better example on how to use the framework (as =0D= the source code is available -it is also on sourceforge : =0D http://cocoamysql.sf.net/ -).=0D =0D Indeed I'm not sure if the CocoaMySQL application is using version 1 or =0D= 2 of the framework, so maybe you want to check that first.=0D =0D For the time being, I'm lacking a tutorial on how to use the framework, =0D= but I'll try to make one as soon as I have time for that (which might =0D= not be too soon, unfortunately).=0D =0D One of the biggest diff. between 1. and 2. API is the name of the =0D classes changed (SMySQL prefix is now replaced by MCP prefix, ie. =0D SMySQLResult became MCPResult).=0D =0D Hope this helps=0D =0D Serge.=0D =0D Le 4 mai 04, =E0 08:01, Daniel Arc=E9 a =E9crit :=0D =0D > Dear Mr. Cohen,=0D >=0D > Thank you for having taken the time to develop a Cocoa Framework for =0D= > MySQL.=0D > I am currently learning OOP with C# at school, but my real interest is = =0D > in=0D > learning Cocoa (something I have to learn by myself).=0D >=0D > I downloaded the source code for MySQL_Display to see how the SMySQL=0D= > framework may be used. However, my inexperience prevents me from=0D > successfully building the application.=0D >=0D > I am using the bundled framework and adding it to the MySQL_Display =0D= > target=0D > under "Copy Files" as described in the readme file.=0D >=0D > Should I be using one of the other frameworks (static, etc)?=0D >=0D > I get three errors in SMySQLResultView.m related to "SMySQLResult". =0D= > They=0D > occur on lines 31 and 49 (parse error before "SMySQLResult") and on =0D= > line 50,=0D > (fatal error: Method definition not in a class context).=0D >=0D > Would you have any suggestions as to what to look for? Any pointers =0D= > would be=0D > welcome.=0D >=0D > I am learning a tremendous amount from efforts like yours.=0D >=0D > Thanks for your time.=0D >=0D > Daniel Arc=E9=0D >=0D >=0D >=0D *******************************************=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D *******************************************=0D =0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAmBh65EPeG5y7WPsRAgcoAJ0c7A+uDtLZqF3iKOMBnz7UXlEnJQCfYYJb ov2l88wX52VB3nzU1L8yGV8=3D =3DG3aN -----END PGP SIGNATURE----- |
|
From: Camille Goureau-S. <ca...@lu...> - 2004-04-11 19:59:04
|
Hi, Sorry to bother with the same question as every one, but it semms not to be so simple : I followed the rukes to install the embedded framework described in the pdf (thanks a lot for it). And now, what do I do ? It keep s telling : LLWebMainWindowCtrlr.m:26: error: `MCPConnection' undeclared (first use in this function) And I can't find in XCode where I can specify headers search path. Can somebody please help me ? Many thanks. Camille |
|
From: Serge C. <ser...@us...> - 2004-03-10 21:00:03
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Yorh;=0D =0D My guess is that you are using the wrong version of the framework, =0D maybe you want to read the README explaining the different versions of =0D= the framework. =46rom the error message I guess you are including =0D (#import) SMySQL.h... which relies on mysql to be existing on your =0D system (by itself).=0D Rather you should use SMySQ_static (#import =0D <SMySQ_static/SMySQ_static.h>) or even more likely SMySQL_bundled =0D (#import <SMySQL_bundled/SMySQL_bundled.h>). For this later, Dave =0D Winter have send a PDF explaining (with screen shot and examples...) =0D= how to use SMySQL_bundled to the user mailing list; if you think you =0D= need this version I very much encourage you to read this PDF.=0D =0D Looking forward to your feed-back.=0D =0D Serge.=0D =0D =0D Le 10 mars 04, =E0 19:41, Yorh a =E9crit :=0D =0D > Hi Serge,=0D >=0D > I'm trying your sMySQL framework...=0D > I have a little problem. When I try to include in some headers your =0D= > framework the compiler returns me an error that says:=0D >=0D > "/Users/andreasalomoni/Library/Frameworks/SMySQL.framework/Headers/ =0D= > MCPConnection.h:28:18: mysql.h: No such file or directory"=0D >=0D > I really don't know where is the problem (because mysql.h is included = =0D > in your framework...)=0D > Thank you very for your support!=0D >=0D > Think Different!=0D > Yorh=0D >=0D - ----------------------------------------------------=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D - ----------------------------------------------------=0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAT32g5EPeG5y7WPsRArypAKCJnbKoST49PbHdLB50WN8ES5XOMQCfVrcC 0IkYxRDeGYNa/yTCUZHJGaA=3D =3DhL2d -----END PGP SIGNATURE----- |
|
From: Serge C. <ser...@us...> - 2004-03-10 20:54:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi;=0D =0D The version of the library that I'm using for the bundled (and static) =0D= version of the framework are compiled with SSL support.=0D =0D The framework itself is linked to libssl and libcrypto.=0D =0D Still, I've not tried it myself, so I'm not completely sure of how it =0D= would work. I was thinking of trying that for a while, so I prepared =0D= the method to tell the library to use SSL connection (but have not =0D tried it yet).=0D =0D You should look at the documentation here :=0D =0D http://mysql-cocoa.sourceforge.net/SMySQL_doc/MCPConnection.html#- =0D %20setConnectionOption:toValue:=0D =0D Use a option of CLIENT_SSL and a value of YES.=0D =0D I've not tried it because I'd like to be sure that the connection is =0D= only accepted if the client is using SSL... and there is always trouble = =0D for setting properly SSL on both sides for the certificates being =0D accepted...=0D =0D I'm curious of whatever result you can have, can you please send this =0D= back to me or the list?=0D =0D =0D Serge.=0D =0D Le 10 mars 04, =E0 20:22, in...@gr... a =E9crit :=0D =0D > hi!=0D >=0D > Sorry!=0D >=0D > My qeuestion was not to use SSH. I want to use SSL on a socket or so!=0D= >=0D > I have the apple-documentation for you on my server.=0D >=0D > is it possible to edit the framework in some parts uding the commands = =0D > "SSLread" and "SSLwrite" to write to the socket?=0D >=0D > http://www.gritsch-soft.com/secureTransportRef.zip=0D >=0D >=0D > Thank you!=0D >=0D >=0D > iChat: gr...@ma...=0D > e-mail: ga...@gr...=0D > website: http://www.gritsch-soft.com=0D > <gritsch-soft.png>=0D - ----------------------------------------------------=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D - ----------------------------------------------------=0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFAT3xm5EPeG5y7WPsRAqftAJ9yELlx9oVrI2kSxkwcBZibCAIB9ACfd7t5 XWtijVFFalUHvI6j1Z/cyeQ=3D =3Drjl6 -----END PGP SIGNATURE----- |
|
From: Serge C. <ser...@us...> - 2004-03-05 22:22:52
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Johnathan;=0D =0D I've added the InfoPlist.strings in the version 2.2.3 of the sources.=0D Can you try this one version of the sources, to tell me if it works Ok =0D= with you now (I've made a try and it worked for me, but I also did the =0D= same with the previous version of the framework and never found that =0D this file was missing...).=0D =0D Your feed-back on that is very much appreciated.=0D =0D Serge.=0D =0D PS: if you don't need to compile from source, you can also get the =0D binary (as proposed by Dave). Still I'd be happy to get your feed-back =0D= on the v2.2.3 sources, if you have time to give it a try.=0D =0D Le 5 mars 04, =E0 17:24, Jonathan McGuire a =E9crit :=0D =0D > Ok the missing InfoStrings.plist file was my issue. After removing it =0D= > from the SMySQL project I was able to build the frame work. I was then = =0D > able to add the built frame work to a cocoa project and select some =0D= > data from my Database thanks so much for this great framework.=0D >=0D > Jonathan=0D =0D =0D - ----------------------------------------------------=0D Serge Cohen=0D =0D GPG Key ID: 9CBB58FB=0D - ----------------------------------------------------=0D -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (Darwin) iD8DBQFASPo/5EPeG5y7WPsRAotWAJ9Ikwe05tkZGezOhXTnjTJhwJx0BACg549/ EmKO+fmj2bLmx1mBlkbClo4=3D =3DnSmR -----END PGP SIGNATURE----- |
|
From: Dave W. <dav...@ma...> - 2004-03-05 16:50:01
|
You can download the framework binaries directly, rather than have to build them yourself. You can find all three flavours by downloading the following .dmg file: http://prdownloads.sourceforge.net/mysql-cocoa/SMySQL_bin_2.2.3.dmg? download Dave. On 5 Mar 2004, at 16:32, Jonathan McGuire wrote: > Yes it was. My problem was the project to create the framework had a > missing file that caused it to fail to build the frame work. But your > notes on how to get the bundled framework properly into another > project were great. > > Thanks, > > Jonathan > > > On Mar 5, 2004, at 8:26 AM, Dave Winter wrote: > >> Was it easy to follow and understand? >> >> Dave. >> >> On 5 Mar 2004, at 16:24, Jonathan McGuire wrote: >> >>> Thanks for the PDF it was very helpful once I got the framework to >>> compile. >>> >>> >>> On Mar 5, 2004, at 2:59 AM, Dave Winter wrote: >>> >>>> Hi all, >>>> >>>> I have written a small document which may help some of you to add >>>> the bundled version of this framework into Xcode. >>>> >>>> It's in PDF format and includes screen-shots for all the steps that >>>> need to be taken. >>>> >>>> http://www.forbiddenbyte.co.uk/cocoa/mysql- >>>> cocoa_bundling_in_xcode.pdf >>>> >>>> Hope it helps. >>>> >>>> Dave Winter. >>>> >>>> <mysql-cocoa_bundling_in_xcode.pdf> >>>> >>> >> > |
|
From: Dave W. <dav...@ma...> - 2004-03-05 11:13:54
|
Hi all, I have written a small document which may help some of you to add the bundled version of this framework into Xcode. It's in PDF format and includes screen-shots for all the steps that need to be taken. http://www.forbiddenbyte.co.uk/cocoa/mysql-cocoa_bundling_in_xcode.pdf Hope it helps. Dave Winter. |
|
From: Serge C. <ser...@us...> - 2004-03-05 09:36:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Jonathan;=0D =0D Can you be a bit more explicit on what you need the framework for... As =0D= you might have read in the README, there is 3 flavours to the =0D framework. If you have not mysql installed on your computer it is not =0D= possible to compile the SMySQL.framework (flavour 1).=0D =0D If you are willing to use the framework for a Cocoa GUI application, =0D you should use the SMySQL_bundled version (set the target to =0D SMySQL_bundled, before compile).=0D =0D May I ask you to describe a bit more what you are doing, from your =0D explanation I have the impression that you just opened the project and =0D= try building (without selecting the proper target, nor updated the TOC =0D= of the libmysqlcleint.a using the terminal)...=0D =0D =0D Hope to read you soon.=0D =0D Serge.=0D =0D Le 5 mars 04, =E0 03:40, Jonathan McGuire a =E9crit :=0D =0D > Hi,=0D >=0D > I'd really like to try out this framework and while I can program in =0D= > Cocoa my ability to solve the types of problems I'm getting just =0D > trying to setup the frame work and create a project are lacking.=0D >=0D > I'm using a 10.3.2 system with the most recent version of xCode. I =0D > read the Read Me and opened up the project and tried to compile I get =0D= > an error but no message describing it.=0D >=0D > Anyone know what I'm doing wrong? Or have steps that would walk me =0D > though it my first time thanks.=0D >=0D > Jonathan=0D >=0D >=0D >=0D > -------------------------------------------------------=0D > This SF.Net email is sponsored by: IBM Linux Tutorials=0D > Free Linux tutorial presented by Daniel Robbins, President and CEO of=0D= > GenToo technologies. Learn everything from fundamentals to system=0D > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcl= ick=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.3 (Darwin) iD8DBQFASEab5EPeG5y7WPsRAo1lAJ9QCekRmQ3HYe8HsIok1HAb0ZSf6QCgtRx+ Rlt3UyC8Z31fJ5IvMV4B7Jo=3D =3DXRw5 -----END PGP SIGNATURE----- |
|
From: Jonathan M. <j.m...@ma...> - 2004-03-05 02:54:35
|
Hi, I'd really like to try out this framework and while I can program in Cocoa my ability to solve the types of problems I'm getting just trying to setup the frame work and create a project are lacking. I'm using a 10.3.2 system with the most recent version of xCode. I read the Read Me and opened up the project and tried to compile I get an error but no message describing it. Anyone know what I'm doing wrong? Or have steps that would walk me though it my first time thanks. Jonathan |
|
From: Serge C. <ser...@us...> - 2004-03-04 21:44:32
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi;=0D
=0D
I have couple of program using SMySQL, but all have been started with =0D=
PB, so none of those are native Xcode project... hence my errors in the =
=0D
mail you are speaking of...=0D
=0D
'Hopefully' you are not the first person to raise this question (the =0D=
previous was also off-list... that's why I'd better have this one on =0D=
list).=0D
=0D
Make a copy phase in the build, then drag the framework on the copy =0D
phase icon (on the file/target... pane on the left of the project =0D
window). Open info of the copy phase, select Frameworks in the top =0D
pulldown menu, set path to / and unselect the copy only on install. =0D
This should do the trick.=0D
=0D
I just got your email n3 now...=0D
I have some miss spelling in the web doc... I've corrected it now, but =0D=
still have to update the web page, here come the 'corrected' version of =
=0D
the example code:=0D
=0D
{=0D
MCPConnection *theConnec =3D [MCPConnection alloc];=0D
MCPResult *theRes;=0D
NSDictionary *theDict;=0D
NSArray *theColNames;=0D
int i, j;=0D
=0D
theConnec =3D [theConnec initToHost:@"albert.com" =
withLogin:@"toto" =0D
password:@"albert" usingPort:0];=0D
[theConnec selectDB:@"db1"];=0D
theRes =3D [theConnec queryString:@"select * from table1"];=0D
theColNames =3D [theRes fetchFiedlsName];=0D
i =3D 0;=0D
while (theDict =3D [theRes fetchRowAsDictionary]){=0D
NSLog(@"Row : %d\n", i);=0D
for (j=3D0; j<[theColNames count]; j++) {=0D
NSLog(@" Field : %@, contain : %@\n", [theColNames =0D
objectAtIndex:j], [theDict objectForKey:[theColNames =0D
objectAtIndex:j]]);=0D
}=0D
i++;=0D
}=0D
}=0D
=0D
=0D
Serge.=0D
=0D
PS: note it is not old documentation with API change, but miss type in =0D=
the doc (even worth...)!=0D
=0D
Le 4 mars 04, =E0 21:19, in...@gr... a =E9crit :=0D
=0D
> hi!=0D
>=0D
> Sorry, now I have found the developers mailinglist archive!=0D
>=0D
> I have reat this:=0D
>=0D
> http://sourceforge.net/mailarchive/forum.php? =0D
> thread_id=3D3929987&forum_id=3D2800=0D
>=0D
> And Your answer. But there is one point that does not work:=0D
>=0D
> In this build phase you should make the destination 'Frameworks', and=0D=
> drag/drop the framework icon (from the left pane in Xcode file list) =
to=0D
> the path text-field. This will make Xcode copy the framework in the=0D
> frameworks folder of your application bundle.=0D
>=0D
> THIS IS NOT POSSIBLE IN Xcode!=0D
> You can try it with the project which I have uploaded on my site.=0D
> In Xcode you can't drag&drop the framework from the list at the left =0D=
> site into the new COPY FILE PHASE.=0D
>=0D
> Is this a problem with my Xcode installation or what?=0D
>=0D
> Thank you!=0D
>=0D
> iChat: gr...@ma...=0D
> e-mail: ga...@gr...=0D
> website: http://www.gritsch-soft.com=0D
> <gritsch-soft.png>=0D
- ----------------------------------------------------=0D
Serge Cohen=0D
=0D
GPG Key ID: 9CBB58FB=0D
- ----------------------------------------------------=0D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAR5/S5EPeG5y7WPsRAuC/AJ0b8tU8WssM5EdMZQv8mH2RmcvMOACgv4QA
ymNBDcJGJb9KBHJmKfrIxaI=3D
=3DduKZ
-----END PGP SIGNATURE-----
|
|
From: Serge C. <ser...@us...> - 2004-02-29 23:11:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Dave;=0D =0D First question, is that I've just posted the release 2.2.2 of the =0D framework which should solve a #import problem (not related at all with = =0D your question, but might help to try, if you have another trouble =0D later... I guess indeed you either have 2.2.2 or already solved the =0D #import problem by yourself)...=0D =0D Answer to your question now:=0D the framework (SMySQL_bundled.framework) should be copied in your =0D application's bundle, for that to be made automatically by Xcode, you =0D= have to add a 'New Copy Files Buidl Phase' (sub-menu of Project -> New =0D= Build Phase).=0D In this build phase you should make the destination 'Frameworks', and =0D= drag/drop the framework icon (from the left pane in Xcode file list) to = =0D the path text-field. This will make Xcode copy the framework in the =0D frameworks folder of your application bundle.=0D =0D (small explanation of the error message you get is that dyld (the =0D dynamic library linker, started at launch of your application) is =0D looking for the framework where it should be =0D - -@executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ =0D= SMySQL_bundled-, but cannot find it because Xcode have not copied it =0D= there).=0D =0D Hope this helps and will solve your problem.=0D =0D Post back to the list if you have further questions/problems.=0D =0D Serge.=0D =0D =0D Le 29 f=E9vr. 04, =E0 22:06, Dave Winter a =E9crit :=0D =0D > Sorry to Serge as I just e-mailed you directly - I just found this =0D= > mailing list on the Source-Forge page.=0D >=0D > I'm trying to built a Cocoa application that will connect to a MySQL =0D= > database over the Internet.=0D >=0D > I'd like to bundle the framework in with my application - however, =0D= > after adding the framework to my project in Xcode, I immediately try =0D= > to build the project (before starting any other work at all - this is = =0D > a blank Cocoa application with only the framework added).=0D >=0D > When I do so, I get the following error:=0D >=0D > -----------=0D >=0D > dyld: =0D > /Users/davidwinter/Projects/cbn_cw/build/cbn_cw.app/Contents/MacOS/ =0D= > cbn_cw can't open library: =0D > @executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ =0D= > SMySQL_bundled (No such file or directory, errno =3D 2)=0D >=0D > cbn_cw has exited due to signal 5 (SIGTRAP).=0D >=0D > -----------=0D >=0D > I noticed on the mailing list archive that someone else had this =0D > problem - but I didn't see a clear resolve for it.=0D >=0D > Is it me?=0D >=0D > I don't have MySQL installed - as I'd like to connect to a database =0D= > over the Internet - not on my local machine. So I don't think that's =0D= > the problem.=0D >=0D > Am I adding the framework correctly in Xcode? I go to Project > Add =0D= > Frameworks. I then use the Default settings.=0D >=0D > The framework itself I have copied into my project directory.=0D >=0D > I'm lost :( And I'm new to Cocoa - so that probably makes things more = =0D > difficult. I usually work with PHP and MySQL for web applications. =0D= > However, I'd really like to make a front-end in Cocoa for one of my =0D= > web applications.=0D >=0D > Any help anyone can give will be much appreciated. Especially if =0D > someone has had this problem and found a way to get it working.=0D >=0D > Thanks.=0D >=0D > Dave Winter.=0D >=0D >=0D >=0D > -------------------------------------------------------=0D > SF.Net is sponsored by: Speed Start Your Linux Apps Now.=0D > Build and deploy apps & Web services for Linux with=0D > a free DVD software kit from IBM. Click Now!=0D > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick=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.3 (Darwin) iD8DBQFAQm7a5EPeG5y7WPsRAumwAKDR4iVAZ1rgkKERSh8qSCQvRsAFCgCgngQq Il6VYSVNAxz7nDeJ2yrWgFA=3D =3DwBr6 -----END PGP SIGNATURE----- |
|
From: Dave W. <dav...@ma...> - 2004-02-29 21:17:59
|
Sorry to Serge as I just e-mailed you directly - I just found this mailing list on the Source-Forge page. I'm trying to built a Cocoa application that will connect to a MySQL database over the Internet. I'd like to bundle the framework in with my application - however, after adding the framework to my project in Xcode, I immediately try to build the project (before starting any other work at all - this is a blank Cocoa application with only the framework added). When I do so, I get the following error: ----------- dyld: /Users/davidwinter/Projects/cbn_cw/build/cbn_cw.app/Contents/MacOS/ cbn_cw can't open library: @executable_path/../Frameworks/SMySQL_bundled.framework/Versions/A/ SMySQL_bundled (No such file or directory, errno = 2) cbn_cw has exited due to signal 5 (SIGTRAP). ----------- I noticed on the mailing list archive that someone else had this problem - but I didn't see a clear resolve for it. Is it me? I don't have MySQL installed - as I'd like to connect to a database over the Internet - not on my local machine. So I don't think that's the problem. Am I adding the framework correctly in Xcode? I go to Project > Add Frameworks. I then use the Default settings. The framework itself I have copied into my project directory. I'm lost :( And I'm new to Cocoa - so that probably makes things more difficult. I usually work with PHP and MySQL for web applications. However, I'd really like to make a front-end in Cocoa for one of my web applications. Any help anyone can give will be much appreciated. Especially if someone has had this problem and found a way to get it working. Thanks. Dave Winter. |
|
From: <t....@dk...> - 2004-02-13 16:18:24
|
Hi, as I am rather new the Obj-C programming I'm having some trouble=20 integrating SMySQL.Framework to my project using Xcode. I'd like to develop a Cocoa-GUI application and would therefore choose=20= a 'bundled' integration as mentioned in the readme. I learned already=20 that I would have to add the framework in Project Builder. Ok, how=20 exactly do I have to poceed that the framework's header files can be=20 found by my app? Thanks in advance, Thomas G=F6tz German Cancer Research Center Central Spectroscopic Department - B090 Im Neuenheimer Feld 280 D-69120 Heidelberg Tel: +49-6221-424670 Email: t....@dk... http://www.dkfz.de/spec/ |