RE: Multiple Document Types
RE: Multiple Document Types
- Subject: RE: Multiple Document Types
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 9 Feb 2005 11:22:52 -0500
- Importance: Normal
What
are you doing in the delegate method? You should have something
like:
YourDocSubclass *aDocument = [[NSDocumentController
sharedDocumentController] openUnitledDocumentOfType:@"Your doc type here"
display:YES];
Jonathan
The Problem:
NSDocumentController's
makeUntitledDocumentOfType returns null
Background:
I am
writing a Coca Doc-based app that support multiple types of documents (like
AppleWorks allows you to create text documents, spreadsheets, and other types
of documents, all in a single application).
What I've Done:
I have
an action to load the resource via a main menu selection directed to First
Responder. The action flows through to the NSApp delegate. Debug reveals the
delegate method is called, but the NSDocument subclass reference remains null.
I don't think the document subclass is being found, but I can't understand
why.
Questions:
1. Does the plist have to be set up some special
way?
2. Are there docs available other than the one paragraph in Apple's
Document-Based Applications/Frequently Asked
Questions?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden