A Return NSString Problem

2011-05-29 Thread Bing Li
Dear all, I got a problem when processing NSString returned from a method, which extracting data from an XML. The data is extracted correctly by the following method. However, when executing isEqualToString with the returned NSString, it got the exception as follows. -[NSXMLNode

Re: A Return NSString Problem

2011-05-29 Thread Graham Cox
On 30/05/2011, at 1:19 PM, Bing Li wrote: If tracking with XCode, the NSString variable which holds the returned value from the following method is specified as Variable is not a CFString. How to fix the bug? + (NSString *) Read:(NSString *)xml Path:(NSString *)xPath NSArray

Re: A Return NSString Problem

2011-05-29 Thread Ken Thomases
On May 29, 2011, at 10:19 PM, Bing Li wrote: I got a problem when processing NSString returned from a method, which extracting data from an XML. The data is extracted correctly by the following method. However, when executing isEqualToString with the returned NSString, it got the exception

Re: A Return NSString Problem

2011-05-29 Thread Chris Hanson
On May 29, 2011, at 8:19 PM, Bing Li lbl...@gmail.com wrote: + (NSString *) Read:(NSString *)xml Path:(NSString *)xPath You need to start following the Cocoa naming and other conventions. They may be different than what you're used to, but it will help you a lot in the long term to write code