Re: Getting line numbers from an NSString

2008-04-11 Thread Jean-Daniel Dupas
Le 11 avr. 08 à 19:31, j o a r a écrit : On Apr 11, 2008, at 10:23 AM, allan greenier wrote: If I have an NSString that is multi lined (say in contains "\n" characters) is there an api call so I can get line 0, line 1, ect? Or should I just code that myself? There is no "NSLineEnumerato

Re: Getting line numbers from an NSString

2008-04-11 Thread j o a r
On Apr 11, 2008, at 10:23 AM, allan greenier wrote: If I have an NSString that is multi lined (say in contains "\n" characters) is there an api call so I can get line 0, line 1, ect? Or should I just code that myself? There is no "NSLineEnumerator" (although that would be a very cool add

Re: Getting line numbers from an NSString

2008-04-11 Thread Paul Bruneau
On Apr 11, 2008, at 1:23 PM, allan greenier wrote: Greetings, Have I missed this somewhere in the Cocoa - Foundation api? If I have an NSString that is multi lined (say in contains "\n" characters) is there an api call so I can get line 0, line 1, ect? Or should I just code that myself? H

Getting line numbers from an NSString

2008-04-11 Thread allan greenier
Greetings, Have I missed this somewhere in the Cocoa - Foundation api? If I have an NSString that is multi lined (say in contains "\n" characters) is there an api call so I can get line 0, line 1, ect? Or should I just code that myself? Thanks, Allan ___