I’m suddenly getting this warning NSScanner: nil string argument in the debug window.
I say suddenly, but I’ve no idea from which code has caused it.
How do I resolve this problem ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You check if the string is nil before creating the NSScanner with it, as you are probably creating it with
or
There is no way of changing the NSScanner string, once it has been created, the compiler is just telling you that it is pointless to create a NSScanner with a nil string.