[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nsdocument class
From: |
Gregory John Casamento |
Subject: |
Re: nsdocument class |
Date: |
Sat, 2 Oct 2004 13:59:50 -0700 (PDT) |
See below..
--- Rogelio Serrano <rogelio.serrano@gmail.com> wrote:
> Is it correct to say that nsdocument classes and related classes is
> necessary for document based applications?
Yes, that's correct.
> Does that translate to
> texteditor running when i double click a text file?
I'm not sure what you mean, but if you are asking if the NSDocument class
controls what files a particular app will open, that's not entirely correct.
It does pertain to actually reading those files though... to make this
association you must have an entry such as:
NSTypes = (
{
NSName = "pkg";
NSHumanReadableName = "GNUstep Package";
NSUnixExtensions = ("pkg");
NSDOSExtensions = ("pkg");
NSRole = Editor;
NSDocumentClass = PKGDocument;
}
)
In your <ApplicationName>Info.plist file. You can have several dictionaries in
the NSTypes array each with a different association.
> I was reading nsdocument reference in the mac website and it is my
> impression from previous postings that gnustep nsdocument
> implementation is not complete. Is that right?
I'm not sure which "previous postings" you're referring to. To my knowledge
NSDocument and NSDocumentController are both complete implementations.
GJC
=====
Gregory John Casamento
-- CEO/President Open Logic Corp. (A Maryland Corporation)
#### Maintainer of Gorm for GNUstep.