View Full Version : equivalent of stringByReplacingOccurrencesOfString in 10.4
xmax
Feb 20, 2009, 01:22 AM
Can any one tell me how can i implement the function
stringByReplacingOccurrencesOfString:withString:options:range:
in MAC OS 10.4?
Thanks
xmax
kpua
Feb 20, 2009, 01:41 AM
You can use the NSMutableString method
- (NSUInteger)replaceOccurrencesOfString:(NSString *)target withString:(NSString *)replacement options:(NSStringCompareOptions)opts range:(NSRange)searchRange
which is available from 10.2.
xmax
Feb 20, 2009, 02:34 AM
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
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.