objective c - Saving, Document Extensions, and Preferences (Info.plist) -


i have simple document-based cocoa app call "raiseman". when go save file, message appears in console:

-[nsdocumentcontroller fileextensionsfromtype:] deprecated, , not work when passed uniform type identifier (uti). if application didn't invoke directly problem other nsdocument or nsdocumentcontroller method getting confused uti that's not declared anywhere. maybe should declared in utexportedtypedeclarations section of app's info.plist not. alleged uti in question "com.bignerdranch.raiseman-doc".

if save current file as, say, "test", turns out file opens .plist, , not open raiseman app. if save "test.rsmn" (explicitly typing extension), saves raiseman-type file, when re-open file, cannot access user preferences or preferences panel (.xib).

context:i working way through aaron hillegass's programming mac os x, chapter 13...

so, in order achieve desired results made sure under properties inspector project targets, identifier , uti type (in document type table), ut type identifier in .plist file same <key>uttypeidentifier</key> <string>"com.yourdomainname.productname"</string>.


Comments