• 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: Subclassing NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSDocumentController


  • Subject: Re: Subclassing NSDocumentController
  • From: Adam Knight <email@hidden>
  • Date: Fri, 19 Sep 2003 14:50:42 -0500

Perhaps I'm missing a larger problem you're running into, but in Project Builder, under your Target, where you set your document types, just tell it to open MyDocument (or whatever) for each type you list. That should do it.

On Friday, September 19, 2003, at 10:19 AM, Tom Gray wrote:

Hello,

Does anyone have any thoughts on subclassing NSDocumentController?

I wish for my application to always create instances of my NSDocument subclass no matter what type of "file" is read from disk. I can't seem to accomplish this with subclassing NSDocumentController.

In other words, no matter what type of document my application reads I wish to open my NSDocument subclass (it has converter code inside it for several data formats) the only way I can think to accomplish this is by subclassing NSDocumentController.

Tom Gray
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


--
Adam
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Subclassing NSDocumentController (From: Tom Gray <email@hidden>)

  • Prev by Date: Re: Objective-C Question [long]
  • Next by Date: Question about NSCoder and decodeObject
  • Previous by thread: Subclassing NSDocumentController
  • Next by thread: NSDocumentController subclass
  • Index(es):
    • Date
    • Thread