I am using QLPreviewController
to display files, many of which are actually plaintext, but QLPreviewController
doesn't seem to know that. (Files with the .m
extension are unable to be displayed, for example.)
Is there a way to tell QLPreviewController
to treat a file as text? (I think it decides that it just can't view them at all.) I was looking into UTIs, but I'm not sure if that is the right direction. (I will know if the file is text, so I won't be guessing.)
Or do I have to save them with .txt extensions behind the scenes?