Re: registration code issues
Re: registration code issues
- Subject: Re: registration code issues
- From: Gregory Weston <email@hidden>
- Date: Wed, 30 Jul 2008 15:28:47 -0400
David Harper wrote:
My Cocoa Application is currently in beta, and there is a single
beta tester who insists his registration code is not working. I've
extensively looked into the issue and it seems that the code works
correctly up to the if statement which simply says:
if ([validCode isEqualToString:enteredCode]), and that
isEqualToString is returning NO.
The code is a 28-digit numeric string broken into 7 chunks of 4 and
separated by dashes as follows: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX.
I tried trimming both strings, and I also tried ignoring the dashes
and checking substringWithRange: for ranges of length 4 with
location incrementing by 5. None of this has worked and the beta
tester insists the code is still not working.
Have you generated output that leads you to believe that the strings
really are the same?
What do you think the odds are that the tester is trying to obtain
an unprotected version? It doesn't seem to me that it makes much
sense to try to do such a thing, and so I'm inclined to believe
him. The program is built for 10.4 or later and he is using 10.4,
and most other testers are on 10.5. Could there possibly be an
issue with one of the built-in methods I take so much for granted?
(is it possible that isEqualToString is not working properly?)
It's theoretically possible that you've hit some weird edge case, but
I think that's the least likely answer. I've had software using
isEqualToString: fairly heavily for the history of Mac OS X without
running into an issue.
Honestly, my first guess would be that something's going wrong in the
generation of validCode or the input of enteredCode and that the
strings are legitimately not equal.
If you want to have a second person try it on 10.4, I can do a quick
test (on a G5. My MacBook is running 10.5 and I'm not prepared to
make a 10.4 Intel boot disk right now.)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden