bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #16338] Problem creating untitled documents of types other than the


From: Sašo Kiselkov
Subject: [bug #16338] Problem creating untitled documents of types other than the first file type listed with a particular document class
Date: Thu, 13 Apr 2006 06:10:47 +0000
User-agent:

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16338>

                 Summary: Problem creating untitled documents of types other
than the first file type listed with a particular document class
                 Project: GNUstep
            Submitted by: diablos
            Submitted on: Thursday 04/13/06 at 06:10
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

The problem is this:

 - suppose I have a document class Document, which handles file types "A",
"B" and "C"
 - if you try to create an untitled document of type "B" or "C" (with either
-[NSDocumentController makeUntitledDocumentOfType:] or -[NSDocumentController
openUntitledDocumentOfType:display:]), you will always get a Document
subclass, which thinks it's file type is "A" (since it's first in the list)
 - the fix is to add a -[NSDocument setFileType:] invocation in
-[NSDocumentController makeUntitledDocumentOfType:] which tells the document
subclass which file type has been requested.

I've attached a patch which does this.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thursday 04/13/06 at 06:10  Name:
NSDocumentController-fileTypeFix.patch  Size: 554B   By: diablos
A patch which fixes the file type issue.
<http://savannah.gnu.org/bugs/download.php?file_id=9776>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16338>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]