• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Multiple Document Types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
-----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

References: 
 >Multiple Document Types (From: Chris Outwin <email@hidden>)

  • Prev by Date: Re: Sample code won't link now that I have updated to panther
  • Next by Date: Re: Do I need to use Distributed Objects or not?
  • Previous by thread: Multiple Document Types
  • Next by thread: NSTextField problems.
  • Index(es):
    • Date
    • Thread