FROM : Sherm Pendley
DATE : Thu Jan 30 20:17:10 2003
On Thursday, January 30, 2003, at 12:11 PM, Steven M.Palm wrote:
> Unsure as of yet why the application just dies
The docs for the cString method mention that it raises an
NSCharacterConversionException if the receiver can't be converted to a
cString without loss of information. If an exception is raised without
being caught, the default behavior is to die.
You can avoid the exception by using the lossyCString method, or as you
said, by checking to ensure that the string can be converted to ASCII
encoding before calling cString.
sherm--
"I have no special gift, I am only passionately curious." - Albert
Einstein
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Jan 30 20:17:10 2003
On Thursday, January 30, 2003, at 12:11 PM, Steven M.Palm wrote:
> Unsure as of yet why the application just dies
The docs for the cString method mention that it raises an
NSCharacterConversionException if the receiver can't be converted to a
cString without loss of information. If an exception is raised without
being caught, the default behavior is to die.
You can avoid the exception by using the lossyCString method, or as you
said, by checking to ensure that the string can be converted to ASCII
encoding before calling cString.
sherm--
"I have no special gift, I am only passionately curious." - Albert
Einstein
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Steven M.Palm | Jan 30, 17:03 | |
| Steven M.Palm | Jan 30, 18:11 | |
| Sherm Pendley | Jan 30, 20:17 | |
| Aki Inoue | Jan 30, 20:46 |






Cocoa mail archive

