I am making an app that can create and email a text file. I would like to provide an option to send it in windows friendly or not.
How would you go about implementing windows friendly and mac friendly version.
Thanks for your help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Pick a “normal” format — CR or CRLF. When the user chooses the other format, filter the text file to replace the CR with CRLF or vice versa. You should be able to accomplish this easily using NSMutableString’s -replaceOccurrencesOfString:withString:options:range: method or similar.