osx - How to create a new instance of an NSDocument with NSDocumentController? -
i tried
[[nsdocumentcontroller shareddocumentcontroller] duplicatedocumentwithcontentsofurl:nil copying:no displayname:nil error:null] ;
but not working. have error
typeforcontentsofurl:error: must overridden application support non-'file:' urls.
did try below:-
[[nsdocumentcontroller shareddocumentcontroller]newdocument:self];
Comments
Post a Comment