What is the definition of type in makeUntitledDocumentOfType

The NSDocumentController method:

- (__kindof NSDocument *)makeUntitledDocumentOfType:(NSString *)typeName error:(NSError * _Nullable *)outError;


is asking for a typeName. From discussions on the web it is not clear exactly what typeName is other than a NSString. Using jus tthe UTI isn't working for me. Various suggestions are to append "modules" of various sorts. I'm lost. Anyone have a clear answer? I've tried "My_App_Name.myUTI, but no luck.


Thanks

Answered by carlfromtucson in 412233022

The answer is: whatever arbitrary string you have entered into the "Document Type Name" field in your info.plist

Accepted Answer

The answer is: whatever arbitrary string you have entered into the "Document Type Name" field in your info.plist

What is the definition of type in makeUntitledDocumentOfType
 
 
Q