开发者

Cocoa writeToFile: with a specific UTI

开发者 https://www.devze.com 2023-03-23 21:10 出处:网络
My app exports to CVS but Numbers won\'t open it because it dosen\'t have the public.comma-separated-values-text UTI. 开发者_如何学GoIs there a simple way to apply the UTI to the file as im writing it

My app exports to CVS but Numbers won't open it because it dosen't have the public.comma-separated-values-text UTI. 开发者_如何学GoIs there a simple way to apply the UTI to the file as im writing it or do I have to declare it in info.plist? I don't want my app to open CVS files, it just needs to export it's data.

Thanks for any help


Numbers or Excel opens CSV files, not CVS files. You see, they are C omma S eparated V alues :) The system automatically assigns the UTI. So, use the extension .csv. CVS is a name of a Drug Store chain.

0

精彩评论

暂无评论...
验证码 换一张
取 消