i'm working on core data document based application, using uimanagedobject subclass storage container.
when saving file (to itunes file sharing) file shows folder, instead of file package. i'd show single file users can't accidentally mess file structure.
here's i've done far. in subclass :
@implementation - (nsstring *)savingfiletype { return @"com.app.filetype"; } - (nsstring *)filenameextensionfortype:(nsstring *)typename saveoperation:(uidocumentsaveoperation)saveoperation { return @"ext"; } @end
in target info, register exported uti :
and... figured out.
in "exported utis" section of info.plist, add "com.apple.package" "conforms to" field of custom uti.
Comments
Post a Comment