Customized document creation
Customized document creation
- Subject: Customized document creation
- From: Michael Dagate <email@hidden>
- Date: Mon, 2 Jul 2001 17:23:28 -0500
Hi,
My document-based app creates documents programmatically, based on input
(user login info) from a panel. Currently, the panel creates the
document object with:
[[NSDocumentController sharedDocumentController]
openUntitledDocumentOfType:@"MainDocument" display:YES];
, then passes the input data to the document object. Ideally, I'd like
to pass the input data during the creation of the document so that the
document object can authenticate the user login info before creating the
window controller and, if necessary, abort the document altogether.
Can anyone suggest a good way to do this? Do I need to subclass
NSDocumentController?
Thanks,
Michael