On Nov 4, 2009, at 14:32:58, Matt Meissner wrote:
Nov 1 21:59:12 Scooter Adium[24744]: server: ‡»ò†<U+F8FF>^G
Nov 1 21:59:15 Scooter com.apple.launchd.peruser.501[748]
([0x0-0x1f06f05].com.adiumX.adiumX[24744]): Job appears to have
crashed: Bus error
The Account, port, and server lines are NSLog calls from my code.
I'm at a loss as to how the port number is showing up fine but the
server is gibberish and the account is blank. Being new to Cocoa,
I'm afraid I'm making a pretty newbie mistake but I'm just not sure
what it is.
You're using the %s formatter, which takes a pointer to char, but then
passing it NSString objects. Either send the UTF8String message to the
objects to get pointers to their characters encoded in UTF-8, or
(preferable) use the %@ formatter to print the objects' description,
which, in the case of a string, is simply the string itself.