Re: Cocoa-dev Digest, Vol 2, Issue 190
Re: Cocoa-dev Digest, Vol 2, Issue 190
- Subject: Re: Cocoa-dev Digest, Vol 2, Issue 190
- From: nick briggs <email@hidden>
- Date: Thu, 10 Feb 2005 12:11:53 +0000
Jonathan
Make sure that @"Your doc type here" is in your Info.plist, you can
set this in xcode by going to properties
and entering it in the 'name' field of he 'Document Types' table.
Nick
On 9 Feb 2005, at 18:05, email@hidden wrote:
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
-----Original Message-----
From: cocoa-dev-bounces+jonathan=email@hidden
[mailto:cocoa-dev-bounces+jonathan=email@hidden]On
Behalf Of
Chris Outwin
Sent: Tuesday, February 08, 2005 7:00 PM
To: email@hidden
Subject: Multiple Document Types
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