[Mysql-cocoa-users] prepareString and/or quoteObject (again)
Brought to you by:
sergecohen
From: Jim H. <che...@ho...> - 2004-11-16 20:42:11
|
I know hotmail sucks monkey balls, but I am forced into using it. Unfortunately, it doesn't display correctly in Mozilla for the Mac. Therefore, I was unable to see anything that I was typing in my last post. Now that I have access to a PC w/ IE, *ack* I can actually read what I'm trying to say... As I perused through the list archives, it became abundantly clear to me that other people seem to be having great success with the "prepareString:" and "quoteObject:" methods. I, on the other hand, seem to be missing out on all of the fun, as I can't seem to get the MCPConnection class to respond to the method. In fact, if I turn on code completion, the IDE only makes these methods available when used in conjunction with the MCPResult class. However, at compile time, I still get the message that "MCPResult may not respond to + prepareString:". (Just for fun, I tried replacing MCPResult with MCPConnection, MCPDocument, & NSString, only to be dissapointed everytime.) Here is my syntax: NSString *aStringVariable; aStringVariable = [MCPConnection prepareString:aStringVariable]; This seems like how it *should* work to me, but I must not understand this correctly. Am I not overriding something properly here? I get the same results with either method. Everything else I am doing with SMySQL works great! Fantastic job! -JH |