Hello,
I'm new to the Mac Programming forum but I've been reading MacRumors for years.
My question is about how to take apart an NSString. I'm reading the Apple reference docs and there's some confusing stuff about NSRange, Scanners, blocks, and not to mention that all of the "substring" methods start with "range".
So what I'd like to do is look at my NSString and count the number of non-numerical characters. Then, I'd like to look at the first character of my NSString, determine if it's a number or not, make note of that, and move on to the next and so on, to the end of the string.
What NSObjects/methods/scanners/ranges should I be looking at to do that?
Thank you guys
I'm new to the Mac Programming forum but I've been reading MacRumors for years.
My question is about how to take apart an NSString. I'm reading the Apple reference docs and there's some confusing stuff about NSRange, Scanners, blocks, and not to mention that all of the "substring" methods start with "range".
So what I'd like to do is look at my NSString and count the number of non-numerical characters. Then, I'd like to look at the first character of my NSString, determine if it's a number or not, make note of that, and move on to the next and so on, to the end of the string.
What NSObjects/methods/scanners/ranges should I be looking at to do that?
Thank you guys
Last edited: