• 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
NSDocument-based app limitations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument-based app limitations?


  • Subject: NSDocument-based app limitations?
  • From: Mark Munz <email@hidden>
  • Date: Mon, 29 Mar 2004 20:44:52 -0700

In my readings, I've always heard that NSDocument is the preferred model to use for document-based applications. However, it seems that NSDocument is designed for only the most basic examples of documents. Or is it that I just don't have a good NSDocument example to learn from? Is there one out there?

I'm trying to mimic some of the behavior that TextEdit has (which does not use NSDocument) for my application.

Like TextEdit, I have either plain text files or rich text files. Right now they're are both using the same subclass of NSDocument.

When I save a file, I'm shown all the file types (both plain and rich) in the filetype popup and there doesn't seem to be a way to just show some of them. Am I missing something obvious here? The filetype info seems to be class based and immutable -- which seems really strange.

Any pointers to perhaps some sample code that shows how to write a NSDocument-based application that supports multiple types would be great. Or any insights to make this easier.

I sure wish TextEdit would have been written as an NSDocument-based application, or maybe it can't be?

Any help is always appreciated. Thanks.

Mark Munz
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSDocument-based app limitations?
      • From: Ralph Pöllath <email@hidden>
    • Re: NSDocument-based app limitations?
      • From: m <email@hidden>
    • Re: NSDocument-based app limitations?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: 2nd click of a dbl click goes to wrong view?!
  • Next by Date: Re: Photoshop bug,while importing images - Is anyone from Apple listening?
  • Previous by thread: Programatically creating scroll view
  • Next by thread: Re: NSDocument-based app limitations?
  • Index(es):
    • Date
    • Thread