[Mysql-cocoa-commits] CVS: SMySQL/MCPApplicationKit MCPDocument.h,1.2,1.3 MCPDocument.m,1.2,1.3
Brought to you by:
sergecohen
From: Serge C. <ser...@us...> - 2004-08-04 23:31:43
|
Update of /cvsroot/mysql-cocoa/SMySQL/MCPApplicationKit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4169/MCPApplicationKit Modified Files: MCPDocument.h MCPDocument.m Log Message: Added the MCPNumber class to handle the unsigned integer numbers (so that there later printout/comparison/equality are coherent with there signedness). Adde support to the MCPNumber in the MCPResult, as well as proper support for the TEXT type (will now get output as NSString while it was NSData in previous release). Declare this version to be 2.3.0. 2004-08-05; Serge Cohen. Index: MCPDocument.h =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL/MCPApplicationKit/MCPDocument.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MCPDocument.h 14 May 2004 11:16:04 -0000 1.2 --- MCPDocument.h 4 Aug 2004 23:31:31 -0000 1.3 *************** *** 41,44 **** --- 41,45 ---- - (MCPResult *) MCPqueryString:(NSString *) query; - (unsigned int) MCPinsertRow:(NSString *) insert; + - (MCPConnection *) MCPgetConnection; // Accessors Index: MCPDocument.m =================================================================== RCS file: /cvsroot/mysql-cocoa/SMySQL/MCPApplicationKit/MCPDocument.m,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MCPDocument.m 14 May 2004 11:16:04 -0000 1.2 --- MCPDocument.m 4 Aug 2004 23:31:31 -0000 1.3 *************** *** 45,48 **** --- 45,51 ---- MCPModelName = @""; } + if (NSClassFromString(@"MCPModel")) { // If the MCPEntrepriseKit is there, use it: + [NSClassFromString(@"MCPModel") getSharedModel]; + } return self; } *************** *** 94,97 **** --- 97,105 ---- } + - (MCPConnection *) MCPgetConnection + /*" Get directly the MCPConnection of the MCPDocument... This method should be used with care, because one can (inadvertly) modify the DB connection of the document itself, producing further inexpected state later."*/ + { + return MCPConnect; + } *************** *** 536,540 **** MCPConnect = nil; [self setMCPConInfoNeeded:YES]; ! NSLog (@"Connection to the server was Ok, but unable to find database : %@\n", MCPDatabase); } else { --- 544,549 ---- MCPConnect = nil; [self setMCPConInfoNeeded:YES]; ! // NSLog (@"Connection to the server was Ok, but unable to find database : %@\n", MCPDatabase); ! NSBeginInformationalAlertSheet(@"MCPDocument alert!", @"Acknowledge", nil, nil, [[self MCPMainWinCont] window], nil, NULL, NULL, nil, @"Connection to the DB server is OK, but it was not possible to select the database '%@'...\nEither it is not existing or you do not have the right to use it.", MCPDatabase); } else { |