It crashes on 3.2 and the console has this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSConcreteMutableData base64Encoding]: unrecognized selector sent to instance 0x4c28d20'
It crashes on 3.2 and the console has this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSConcreteMutableData base64Encoding]: unrecognized selector sent to instance 0x4c28d20'
There is no such thing as "base64Encoding". Why do you need this anyway - not sure what you are trying to do here? The string creation will work without it.
There is no such thing as "base64Encoding". Why do you need this anyway - not sure what you are trying to do here? The string creation will work without it.
Ummm....i may be mistaken, but I saw it somewhere and seems to work perfectly. Here is authString with it: YXBjOmFwYw== and authString without it: <6170633a 617063>
Those are the values printed to the console by NSLog(@"%@",authString)
I am using it within an web service application that i am writing to put base 64 encoded strings into a request.
I guess its possible that the base64encoding component is part of "NSData+Additions.h", but I still don't understand why it would work in 4.0 and not 3.2. Was there a base64encoding addition to NSData in 4.0?
anyone else have any other ideas on this one? I am kind of stumped at the moment. do you think that it's not worth worrying about since 4.x will be coming out for the iPad soon and I can just say that you need 4.x to run the app?
Still stuck on this one....
I'd rather not have to add extra classes to my application if I don't have to. Any thoughts/suggestions? I don't know what the best practice would be in this case. Has anyone implemented any base 64 encoding in their applications?
I finally figured it out. I was able to find the NSData+Additions.h class. It was deeply buried within the Colloquy source code. It's a pretty handy class....allows for base 64 encoding of your authentication string with two lines: