Re: NSString ambiguities

2010-07-01 Thread Jens Alfke
On Jul 1, 2010, at 4:02 AM, Ariel Feinerman wrote: > I wish to get the strings from file, exclude some strings and empty strings > and write them to file, so do you sure these methods are for that? Yup, they should work for that. They will help you iterate over the lines in the contents, regard

Re: NSString ambiguities

2010-07-01 Thread Ariel Feinerman
I wish to get the strings from file, exclude some strings and empty strings and write them to file, so do you sure these methods are for that? Can you explain what you suggest by given an example? I take care of backward compatibility with 10.5 therefore 10.6 blocks is out . Thank you. 2010/7/1

Re: NSString ambiguities

2010-06-30 Thread Douglas Davidson
On Jun 30, 2010, at 3:02 PM, Ariel Feinerman wrote: > If we read whole file as a NSString, will be any conversions between \r\n, > \r, \n? Then if not, will be -componentsSeparatedByCharactersInSet: > [NSCharacterSet newlineCharacterSet] create empty strings in Win \r\n case? > So what is the bes

NSString ambiguities

2010-06-30 Thread Ariel Feinerman
Hi, If we read whole file as a NSString, will be any conversions between \r\n, \r, \n? Then if not, will be -componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet] create empty strings in Win \r\n case? So what is the best: [NSCharacterSet newlineCharacterSet] or [NSCharacterSe