[Mysql-cocoa-commits] CVS: Documentation/website/SMySQL_doc MCPConnectionWinCont.html,NONE,1.1 MCPDo
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2004-03-04 22:40:43
|
Update of /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31042/SMySQL_doc Modified Files: MCPConnection+MCPFastQueries.html MCPConnection.html MCPResult+MCPResultPlus.html MCPResult.html NSObject+MCPNSNullTest.html Added Files: MCPConnectionWinCont.html MCPDocument.html Log Message: Added new entries (and donation links) to the index page. Updated the html documentation of the framework. 2004-03-04; Serge Cohen. --- NEW FILE: MCPConnectionWinCont.html --- <HTML><HEAD><TITLE></TITLE></HEAD> <BODY BGCOLOR="#FFFFFF"> <BR><BR><FONT COLOR="#000066"><H1><A NAME="//apple_ref/occ/cl/MCPConnectionWinCont">MCPConnectionWinCont</A></H1></FONT><BR> <blockquote><DL><DT><B>Inherits From:</B></DT> <DD>NSWindowController</DD> </DL></blockquote> <blockquote><DL><DT><B>Declared In:</B></DT> <DD>MCPConnectionWinCont.h</DD> </DL></blockquote> <BR><BR> <H2>Class Description</H2> This class is the WindowController for the window asking parameters of connection to the user.<P> It is responsible to set the appropriate value of the MCPDocument instance variables. <P><HR WIDTH=50% ALIGN=LEFT> <H2>Instance Variables</H2> <blockquote> <CODE>IBOutlet NSTextField *<B>mHostField</B>;</CODE><BR> <CODE>IBOutlet NSTextField *<B>mLoginField</B>;</CODE><BR> <CODE>IBOutlet NSTextField *<B>mDatabaseField</B>;</CODE><BR> <CODE>IBOutlet NSTextField *<B>mPortField</B>;</CODE><BR> <CODE>IBOutlet NSPanel *<B>mPasswordSheet</B>;</CODE><BR> <CODE>IBOutlet NSTextField *<B>mPasswordField</B>;</CODE><BR> <P><TABLE> <TR><TD>mHostField</TD><TD>No description.</TD></TR> <TR><TD>mLoginField</TD><TD>No description.</TD></TR> <TR><TD>mDatabaseField</TD><TD>No description.</TD></TR> <TR><TD>mPortField</TD><TD>No description.</TD></TR> <TR><TD>mPasswordSheet</TD><TD>No description.</TD></TR> <TR><TD>mPasswordField</TD><TD>No description.</TD></TR> </TABLE> </blockquote> <P><HR WIDTH=50% ALIGN=LEFT> <H2>Method Types</H2> <blockquote> Actions for Interface Builder <DL><DT></DT> </DL> For the clear text information. <DL><DT></DT> <DD> <A HREF="#- doGo:">- doGo:</A></DD> <DD> <A HREF="#- doCancel:">- doCancel:</A></DD> <DD> <A HREF="#- modifyInstance:">- modifyInstance:</A></DD> </DL> For the password. <DL><DT></DT> <DD> <A HREF="#- passwordClick:">- passwordClick:</A></DD> <DD> <A HREF="#- askPassword:">- askPassword:</A></DD> <DD> <A HREF="#- Password">- Password</A></DD> </DL> Overrides of NSWindowController method, to adapt to this Window Controller. <DL><DT></DT> <DD> <A HREF="#- init">- init</A></DD> <DD> <A HREF="#- dealloc">- dealloc</A></DD> <DD> <A HREF="#- windowDidLoad">- windowDidLoad</A></DD> </DL> </blockquote> <HR WIDTH=50% ALIGN=LEFT> <H2>Instance Methods</H2> <A NAME="- Password"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/Password">Password</A></H3><P> <CODE>- (NSString *)<B>Password</B> </CODE><P> Send the password (from the NSPasswordField), this method puts the password in the answer (as an autoreleased object), and DELETE it from the NSSecureTextField. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- askPassword:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/askPassword:">askPassword:</A></H3><P> <CODE>- (IBAction)<B>askPassword:</B>(id)<EM>sender</EM> </CODE><P> No method description. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- dealloc"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/dealloc">dealloc</A></H3><P> <CODE>- (void)<B>dealloc</B> </CODE><P> Gives notification that the WindowController is being deallocated (is it really useful? not yet!). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- doCancel:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/doCancel:">doCancel:</A></H3><P> <CODE>- (IBAction)<B>doCancel:</B>(id)<EM>sender</EM> </CODE><P> What to do when the user clicks on the Cancel button of the window. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- doGo:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/doGo:">doGo:</A></H3><P> <CODE>- (IBAction)<B>doGo:</B>(id)<EM>sender</EM> </CODE><P> What to do when the user clicks on the Go button of the window. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- init"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/init">init</A></H3><P> <CODE>- (id)<B>init</B> </CODE><P> When inited, open the proper window... <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- modifyInstance:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/modifyInstance:">modifyInstance:</A></H3><P> <CODE>- (IBAction)<B>modifyInstance:</B>(id)<EM>sender</EM> </CODE><P> Action to take when the user modify one of the entry of the New Connection dialog. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- passwordClick:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/passwordClick:">passwordClick:</A></H3><P> <CODE>- (IBAction)<B>passwordClick:</B>(id)<EM>sender</EM> </CODE><P> For the password. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- windowDidLoad"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnectionWinCont/windowDidLoad">windowDidLoad</A></H3><P> <CODE>- (void)<B>windowDidLoad</B> </CODE><P> What to do once the window has been loaded : update the fields... <P><HR> Version 1.1 Copyright ©2004 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> --- NEW FILE: MCPDocument.html --- <HTML><HEAD><TITLE></TITLE></HEAD> <BODY BGCOLOR="#FFFFFF"> <BR><BR><FONT COLOR="#000066"><H1><A NAME="//apple_ref/occ/cl/MCPDocument">MCPDocument</A></H1></FONT><BR> <blockquote><DL><DT><B>Inherits From:</B></DT> <DD>NSDocument</DD> </DL></blockquote> <blockquote><DL><DT><B>Declared In:</B></DT> <DD>MCPDocument.h</DD> </DL></blockquote> <BR><BR> <H2>Class Description</H2> No class description. <P><HR WIDTH=50% ALIGN=LEFT> <H2>Instance Variables</H2> <blockquote> <CODE>BOOL MCPConInfoNeeded, <B>MCPPassNeeded</B>;</CODE><BR> <CODE>NSString *MCPHost, *MCPLogin, *<B>MCPDatabase</B>;</CODE><BR> <CODE>unsigned int <B>MCPPort</B>;</CODE><BR> <CODE>MCPConnection *<B>MCPConnect</B>;</CODE><BR> <CODE>NSWindowController *<B>MCPMainWinCont</B>;</CODE><BR> <CODE>Class <B>MCPConnectedWinCont</B>;</CODE><BR> <P><TABLE> <TR><TD>MCPPassNeeded</TD><TD>No description.</TD></TR> <TR><TD>MCPDatabase</TD><TD>No description.</TD></TR> <TR><TD>MCPPort</TD><TD>No description.</TD></TR> <TR><TD>MCPConnect</TD><TD>No description.</TD></TR> <TR><TD>MCPMainWinCont</TD><TD>No description.</TD></TR> <TR><TD>MCPConnectedWinCont</TD><TD>Window controller used once the connection is established (As a class).</TD></TR> </TABLE> </blockquote> <P><HR WIDTH=50% ALIGN=LEFT> <H2>Method Types</H2> <blockquote> Class Maintenance <DL><DT></DT> <DD> <A HREF="#+ initialize">+ initialize</A></DD> </DL> Initialisation and deallocation <DL><DT></DT> <DD> <A HREF="#- init">- init</A></DD> <DD> <A HREF="#- dealloc">- dealloc</A></DD> </DL> Connection to the databse related <DL><DT></DT> <DD> <A HREF="#- MCPqueryString:">- MCPqueryString:</A></DD> <DD> <A HREF="#- MCPinsertRow:">- MCPinsertRow:</A></DD> </DL> Accessors to the parameters of the connection <DL><DT></DT> <DD> <A HREF="#- setMCPHost:">- setMCPHost:</A></DD> <DD> <A HREF="#- setMCPLogin:">- setMCPLogin:</A></DD> <DD> <A HREF="#- setMCPDatabase:">- setMCPDatabase:</A></DD> <DD> <A HREF="#- setMCPPort:">- setMCPPort:</A></DD> <DD> <A HREF="#- setMCPConInfoNeeded:">- setMCPConInfoNeeded:</A></DD> <DD> <A HREF="#- MCPHost">- MCPHost</A></DD> <DD> <A HREF="#- MCPLogin">- MCPLogin</A></DD> <DD> <A HREF="#- MCPDatabase">- MCPDatabase</A></DD> <DD> <A HREF="#- MCPPort">- MCPPort</A></DD> <DD> <A HREF="#- MCPConInfoNeeded">- MCPConInfoNeeded</A></DD> <DD> <A HREF="#- MCPPassNeeded">- MCPPassNeeded</A></DD> <DD> <A HREF="#- MCPisConnected">- MCPisConnected</A></DD> <DD> <A HREF="#- MCPConnect">- MCPConnect</A></DD> </DL> Accessor to the window generated once the connection is established <DL><DT></DT> <DD> <A HREF="#- setMCPConnectedWinCont:">- setMCPConnectedWinCont:</A></DD> <DD> <A HREF="#- MCPConnectedWinCont">- MCPConnectedWinCont</A></DD> </DL> Accessors to the main window (connection or connected window), through their window controller. <DL><DT></DT> <DD> <A HREF="#- MCPMainWinCont">- MCPMainWinCont</A></DD> </DL> Overrides of NSDocument methods. <DL><DT></DT> <DD> <A HREF="#- dataRepresentationOfType:">- dataRepresentationOfType:</A></DD> <DD> <A HREF="#- loadDataRepresentation:ofType:">- loadDataRepresentation:ofType:</A></DD> <DD> <A HREF="#- makeWindowControllers">- makeWindowControllers</A></DD> <DD> <A HREF="#- windowControllerDidLoadNib:">- windowControllerDidLoadNib:</A></DD> </DL> Method to take care of the password sheet. <DL><DT></DT> <DD> <A HREF="#- MCPpasswordSheetDidEnd:returnCode:contextInfo:">- MCPpasswordSheetDidEnd:returnCode:contextInfo:</A></DD> </DL> </blockquote> <P><HR WIDTH=50% ALIGN=LEFT> <H2>Class Methods</H2> <A NAME="+ initialize"></A><H3><A NAME="//apple_ref/occ/clm/MCPDocument/initialize">initialize</A></H3> <CODE>+ (void)<B>initialize</B> </CODE><P> No method description. <HR WIDTH=50% ALIGN=LEFT> <H2>Instance Methods</H2> <A NAME="- MCPConInfoNeeded"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPConInfoNeeded">MCPConInfoNeeded</A></H3><P> <CODE>- (BOOL)<B>MCPConInfoNeeded</B> </CODE><P> Return the status of the gathering of information for the connection. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPConnect"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPConnect">MCPConnect</A></H3><P> <CODE>- (MCPConnection *)<B>MCPConnect</B> </CODE><P> Return a pointer to the used MCPConnection. SHOULD NOT be used (one should rather use the connection methods : MCPqueryString: or MCPinsertRow:) <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPConnectedWinCont"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPConnectedWinCont">MCPConnectedWinCont</A></H3><P> <CODE>- (Class)<B>MCPConnectedWinCont</B> </CODE><P> Return the Class object of the class used for the main document window (once the connection to the DB server is established). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPDatabase"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPDatabase">MCPDatabase</A></H3><P> <CODE>- (NSString *)<B>MCPDatabase</B> </CODE><P> Returns the actual database name of the used db server. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPHost"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPHost">MCPHost</A></H3><P> <CODE>- (NSString *)<B>MCPHost</B> </CODE><P> Returns the actual hostname of the used db server. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPLogin"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPLogin">MCPLogin</A></H3><P> <CODE>- (NSString *)<B>MCPLogin</B> </CODE><P> Returns the actual login to the used db server. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPMainWinCont"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPMainWinCont">MCPMainWinCont</A></H3><P> <CODE>- (NSWindowController *)<B>MCPMainWinCont</B> </CODE><P> Return the current main window controller for the document (closing this window causes a close of the document). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPPassNeeded"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPPassNeeded">MCPPassNeeded</A></H3><P> <CODE>- (BOOL)<B>MCPPassNeeded</B> </CODE><P> Return the status of the gathering of the password for the connection. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPPort"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPPort">MCPPort</A></H3><P> <CODE>- (unsigned int)<B>MCPPort</B> </CODE><P> Returns the port used to connect to the database server (0 means default: from mysql.h -> MYSQL_PORT=3306). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPinsertRow:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPinsertRow:">MCPinsertRow:</A></H3><P> <CODE>- (unsigned int)<B>MCPinsertRow:</B>(NSString *)<EM>insert</EM> </CODE><P> Method to use to <I>insert</I> a new row in a table, will return the primary key (auto_increment column) of the new record. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPisConnected"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPisConnected">MCPisConnected</A></H3><P> <CODE>- (BOOL)<B>MCPisConnected</B> </CODE><P> Check if the connection is working. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPpasswordSheetDidEnd:returnCode:contextInfo:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPpasswordSheetDidEnd:returnCode:contextInfo:">MCPpasswordSheetDidEnd:returnCode:contextInfo:</A></H3><P> <CODE>- (void)<B>MCPpasswordSheetDidEnd:</B>(NSWindow *)<EM>sheet</EM> <B>returnCode:</B>(int)<EM>returnCode</EM> <B>contextInfo:</B>(void *)<EM>contextInfo</EM> </CODE><P> Method called once the user enterred the password and click Ok (or press return) Try to make a connection (depending of the button clicked), if password is refused, go back to ask connection information. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- MCPqueryString:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/MCPqueryString:">MCPqueryString:</A></H3><P> <CODE>- (MCPResult *)<B>MCPqueryString:</B>(NSString *)<EM>query</EM> </CODE><P> Send a <I>query</I> to the MCPConnection instance variable. For insert queries, one should prefer the insert: method, which return the primary key (auto_increment) of the new row. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- dataRepresentationOfType:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/dataRepresentationOfType:">dataRepresentationOfType:</A></H3><P> <CODE>- (NSData *)<B>dataRepresentationOfType:</B>(NSString *)<EM>aType</EM> </CODE><P> Return data correspoding to archived dictionary containing the parameters for the connection (except for the password, not saved). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- dealloc"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/dealloc">dealloc</A></H3><P> <CODE>- (void)<B>dealloc</B> </CODE><P> Deallocation of the object... autorelease all the members. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- init"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/init">init</A></H3><P> <CODE>- (id)<B>init</B> </CODE><P> Initialisation of the MCPDocument object, by default every thing is setted to null (or empty), accordingly to that the mConInfoNeeded is setted to YES (true): the connection information (parameters) ARE needed. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- loadDataRepresentation:ofType:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/loadDataRepresentation:ofType:">loadDataRepresentation:ofType:</A></H3><P> <CODE>- (BOOL)<B>loadDataRepresentation:</B>(NSData *)<EM>data</EM> <B>ofType:</B>(NSString *)<EM>aType</EM> </CODE><P> Load a file containing the connection parameters (except for the password) in the instance of the MCPDocument. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- makeWindowControllers"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/makeWindowControllers">makeWindowControllers</A></H3><P> <CODE>- (NSArray *)<B>makeWindowControllers</B> </CODE><P> Make the proper window: either the Connection Info window or the main browser window. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPConInfoNeeded:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPConInfoNeeded:">setMCPConInfoNeeded:</A></H3><P> <CODE>- (void)<B>setMCPConInfoNeeded:</B>(BOOL)<EM>theConInfoNeeded</EM> </CODE><P> VERY IMPORTANT method! Change the value of mConInfoNeeded AND toggle the states of the object, removing appropriate window and displaying other(s) ... <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPConnectedWinCont:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPConnectedWinCont:">setMCPConnectedWinCont:</A></H3><P> <CODE>- (void)<B>setMCPConnectedWinCont:</B>(Class)<EM>theConnectedWinCont</EM> </CODE><P> Use to set the type of NSWindowController to be used for the main window of the document once the connection as been established. <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPDatabase:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPDatabase:">setMCPDatabase:</A></H3><P> <CODE>- (void)<B>setMCPDatabase:</B>(NSString *)<EM>theDatabase</EM> </CODE><P> Sets the name of the database to use on the db server (doesn't accept changes once mConInfoNeeded is NO). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPHost:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPHost:">setMCPHost:</A></H3><P> <CODE>- (void)<B>setMCPHost:</B>(NSString *)<EM>theHost</EM> </CODE><P> Sets the name of the host to which to connect (the one which the db server runs) (doesn't accept changes once MCPConInfoNeeded is NO). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPLogin:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPLogin:">setMCPLogin:</A></H3><P> <CODE>- (void)<B>setMCPLogin:</B>(NSString *)<EM>theLogin</EM> </CODE><P> Sets the name of the database to use on the db server (doesn't accept changes once MCPConInfoNeeded is NO). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- setMCPPort:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/setMCPPort:">setMCPPort:</A></H3><P> <CODE>- (void)<B>setMCPPort:</B>(unsigned int)<EM>thePort</EM> </CODE><P> Set the port to use to connect to the database server (doesn't accept changes once mConInfoNeeded is NO). <P><HR WIDTH=25% ALIGN=LEFT> <A NAME="- windowControllerDidLoadNib:"></A><H3><A NAME="//apple_ref/occ/instm/MCPDocument/windowControllerDidLoadNib:">windowControllerDidLoadNib:</A></H3><P> <CODE>- (void)<B>windowControllerDidLoadNib:</B>(NSWindowController *)<EM>aController</EM> </CODE><P> What to do when a specific window is loaded: - Nothing for the Connection Info Window (MCPConnectionWindow.nib). - Whatever one wants for another window type. <P><HR> Version 1.1 Copyright ©2004 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:47 2004 <P> </BODY></HTML> Index: MCPConnection+MCPFastQueries.html =================================================================== RCS file: /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc/MCPConnection+MCPFastQueries.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MCPConnection+MCPFastQueries.html 19 Aug 2003 10:04:41 -0000 1.1 --- MCPConnection+MCPFastQueries.html 4 Mar 2004 22:19:12 -0000 1.2 *************** *** 144,148 **** <P><HR> ! Version 1.2 Copyright ©2002 by Serge Cohen. All Rights Reserved. Mon Aug 18 14:35:42 2003 <P> </BODY></HTML> --- 144,148 ---- <P><HR> ! Version 1.1 Copyright ©2003 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> Index: MCPConnection.html =================================================================== RCS file: /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc/MCPConnection.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MCPConnection.html 19 Aug 2003 10:04:41 -0000 1.1 --- MCPConnection.html 4 Mar 2004 22:19:12 -0000 1.2 *************** *** 82,85 **** --- 82,86 ---- <CODE>BOOL <B>mConnected</B>;</CODE><BR> <CODE>NSStringEncoding <B>mEncoding</B>;</CODE><BR> + <CODE>unsigned int <B>mConnectionFlags</B>;</CODE><BR> <P><TABLE> *************** *** 90,93 **** --- 91,96 ---- <TR><TD>mEncoding</TD><TD>The encoding used by MySQL server, to ISO-1 default</TD></TR> + <TR><TD>mConnectionFlags</TD><TD>The flags to be used for the connection to the database.</TD></TR> + </TABLE> </blockquote> *************** *** 133,137 **** <DD> <A HREF="#- initToSocket:withLogin:password:">- initToSocket:withLogin:password:</A></DD> ! <DD> <A HREF="#- setConnectionOption:withArgument:">- setConnectionOption:withArgument:</A></DD> <DD> <A HREF="#- connectWithLogin:password:host:port:socket:">- connectWithLogin:password:host:port:socket:</A></DD> --- 136,140 ---- <DD> <A HREF="#- initToSocket:withLogin:password:">- initToSocket:withLogin:password:</A></DD> ! <DD> <A HREF="#- setConnectionOption:toValue:">- setConnectionOption:toValue:</A></DD> <DD> <A HREF="#- connectWithLogin:password:host:port:socket:">- connectWithLogin:password:host:port:socket:</A></DD> *************** *** 381,385 **** <CODE>- (id)<B>init</B> </CODE><P> ! Initialise a MySQLConnection without making a connection, most likely useless, except with <CODE>setConnectionOption:withArgument:</CODE>. <P><HR WIDTH=25% ALIGN=LEFT> --- 384,394 ---- <CODE>- (id)<B>init</B> </CODE><P> ! Initialise a MySQLConnection without making a connection, most likely useless, except with <CODE>setConnectionOption:withArgument:</CODE>.<P> ! ! Because this method is not making a connection to any MySQL server, it can not know already what the DB server encoding will be, ! hence the encoding is set to some default (at present this is NSISOLatin1StringEncoding). Obviously this is reset to a proper ! value as soon as a DB connection is performed.<P> ! ! <B>I AM CURRENTLY NOT TESTING THIS METHOD, so it is likely to be buggy</B>... I'd be SUPER happy to ear/read your feed-back on this. <P><HR WIDTH=25% ALIGN=LEFT> *************** *** 536,544 **** <P><HR WIDTH=25% ALIGN=LEFT> ! <A NAME="- setConnectionOption:withArgument:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnection/setConnectionOption:withArgument:">setConnectionOption:withArgument:</A></H3><P> ! <CODE>- (BOOL)<B>setConnectionOption:</B>(int)<EM>option</EM> <B>withArgument:</B>(id)<EM>arg</EM> </CODE><P> ! <B>NOT YET IMPLEMENTED</B><P> This method is to be used for getting special <I>option</I> for a connection, in which case the MCPConnection has to be inited with the init method, then <I>option</I> are selected, finally connection is done using one of the connect methods:<P> --- 545,553 ---- <P><HR WIDTH=25% ALIGN=LEFT> ! <A NAME="- setConnectionOption:toValue:"></A><H3><A NAME="//apple_ref/occ/instm/MCPConnection/setConnectionOption:toValue:">setConnectionOption:toValue:</A></H3><P> ! <CODE>- (BOOL)<B>setConnectionOption:</B>(int)<EM>option</EM> <B>toValue:</B>(BOOL)<EM>value</EM> </CODE><P> ! <B>IMPLEMENTED BUT NOT TESTED!!</B><P> This method is to be used for getting special <I>option</I> for a connection, in which case the MCPConnection has to be inited with the init method, then <I>option</I> are selected, finally connection is done using one of the connect methods:<P> *************** *** 546,550 **** <CODE> <BR> MCPConnection *theConnect = [[MCPConnection alloc] init]; <BR> ! [theConnect setConnectionOption: option withArgument: arg]; <BR> [theConnect connectToHost:albert.com withLogin:@"toto" password:@"albert" port:0]; <BR> .... <BR> --- 555,559 ---- <CODE> <BR> MCPConnection *theConnect = [[MCPConnection alloc] init]; <BR> ! [theConnect setConnectionOption: option toValue: value]; <BR> [theConnect connectToHost:albert.com withLogin:@"toto" password:@"albert" port:0]; <BR> .... <BR> *************** *** 581,585 **** <P><HR> ! Version 1.5 Copyright ©2003 by Serge Cohen. All Rights Reserved. Mon Aug 18 14:35:42 2003 <P> </BODY></HTML> --- 590,594 ---- <P><HR> ! Version 1.2 Copyright ©2003 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> Index: MCPResult+MCPResultPlus.html =================================================================== RCS file: /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc/MCPResult+MCPResultPlus.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MCPResult+MCPResultPlus.html 19 Aug 2003 10:04:41 -0000 1.1 --- MCPResult+MCPResultPlus.html 4 Mar 2004 22:19:12 -0000 1.2 *************** *** 115,119 **** <P><HR> ! Version 1.2 Copyright ©2002 by Serge Cohen. All Rights Reserved. Mon Aug 18 14:35:42 2003 <P> </BODY></HTML> --- 115,119 ---- <P><HR> ! Version 1.1 Copyright ©2003 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> Index: MCPResult.html =================================================================== RCS file: /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc/MCPResult.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MCPResult.html 19 Aug 2003 10:04:41 -0000 1.1 --- MCPResult.html 4 Mar 2004 22:19:12 -0000 1.2 *************** *** 34,42 **** MCPConnection *theConnec = [MCPConnection alloc]; <BR> MCPResult *theRes; <BR> ! NSDictionnary *theDict; <BR> NSArray *theColNames; <BR> int i, j;<BR> <BR> ! theConnec = [theConnec initToHost::albert.com withLogin:@"toto" password:@"albert" port:0]; <BR> [theConnec selectDB:@"db1"]; <BR> theRes = [theConnec queryString:@"select * from table1"]; <BR> --- 34,42 ---- MCPConnection *theConnec = [MCPConnection alloc]; <BR> MCPResult *theRes; <BR> ! NSDictionary *theDict; <BR> NSArray *theColNames; <BR> int i, j;<BR> <BR> ! theConnec = [theConnec initToHost:@"albert.com" withLogin:@"toto" password:@"albert" usingPort:0]; <BR> [theConnec selectDB:@"db1"]; <BR> theRes = [theConnec queryString:@"select * from table1"]; <BR> *************** *** 46,50 **** NSLog(@"Row : <I>d</I>\n", i); <BR> for (j=0; j<[theColNames count]; j++) { <BR> ! NSLog(@" Field : %@, contain : %@\n", [theColNames objectAtInex:j], [theDict objectForKey:[theColNames objectAtIndex:j]]); <BR> }<BR> i++; <BR> --- 46,50 ---- NSLog(@"Row : <I>d</I>\n", i); <BR> for (j=0; j<[theColNames count]; j++) { <BR> ! NSLog(@" Field : %@, contain : %@\n", [theColNames objectAtIndex:j], [theDict objectForKey:[theColNames objectAtIndex:j]]); <BR> }<BR> i++; <BR> *************** *** 387,391 **** <P><HR> ! Version 1.2 Copyright ©2002 by Serge Cohen. All Rights Reserved. Mon Aug 18 14:35:42 2003 <P> </BODY></HTML> --- 387,391 ---- <P><HR> ! Version 1.1 Copyright ©2003 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> Index: NSObject+MCPNSNullTest.html =================================================================== RCS file: /cvsroot/mysql-cocoa/Documentation/website/SMySQL_doc/NSObject+MCPNSNullTest.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NSObject+MCPNSNullTest.html 19 Aug 2003 10:04:41 -0000 1.1 --- NSObject+MCPNSNullTest.html 4 Mar 2004 22:19:12 -0000 1.2 *************** *** 77,81 **** <P><HR> ! Version 1.2 Copyright ©2002 by Serge Cohen. All Rights Reserved. Mon Aug 18 14:35:42 2003 <P> </BODY></HTML> --- 77,81 ---- <P><HR> ! Version 1.1 Copyright ©2003 by Serge Cohen. All Rights Reserved. Thu Mar 04 22:45:46 2004 <P> </BODY></HTML> |