Re: using fileWrapperFromRange: for lossy conversion

2009-05-20 Thread Douglas Davidson
On May 20, 2009, at 11:01 AM, Philip White wrote: Sorry for the vagueness. The NSError object return by the routine has a description of "Error Domain=NSCocoaErrorDomain Code=517 UserInfo=0x53586b0 "The file could not be saved using text encoding Western (Mac OS Roman)." I've noticed that I

Re: using fileWrapperFromRange: for lossy conversion

2009-05-20 Thread Philip White
Hi, Sorry for the vagueness. The NSError object return by the routine has a description of "Error Domain=NSCocoaErrorDomain Code=517 UserInfo=0x53586b0 "The file could not be saved using text encoding Western (Mac OS Roman)." I've noticed that I don't get errors saving an RTF file even if it

using fileWrapperFromRange: for lossy conversion

2009-05-20 Thread Philip White
Hello, I am hoping to use NSAttributedString's fileWrapperFromRange:documentAttributes:error: to export text from my program into a variety of formats. However, the routine fails frequently when the NSDocumentTypeDocumentAttribute is set to NSPlainTextDocumentType, to be specific, when