Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xmax

macrumors member
Original poster
Jul 3, 2008
33
0
Can any one tell me how can i implement the function
stringByReplacingOccurrencesOfString:withString:eek:ptions:range:

in MAC OS 10.4?


Thanks

xmax
 

kpua

macrumors 6502
Jul 25, 2006
294
0
You can use the NSMutableString method
Code:
- (NSUInteger)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)opts range:(NSRange)searchRange
which is available from 10.2.
 

xmax

macrumors member
Original poster
Jul 3, 2008
33
0
equivalent of stringByReplacingOccurrencesOfString in 10.4

Thanks For Your reply.

I want to use method stringByReplacingOccurrencesOfString:withStringptions:range: in case of MAC OS 10.5.
and in case of 10.4 i want to use method suggested by you.
How can i implement it ?

Thank
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.