bug-gnustep
[Top][All Lists]
Advanced

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

[bug #24309] file name, extension, and content detection system request


From: Juan Manuel Borges Caño
Subject: [bug #24309] file name, extension, and content detection system request
Date: Fri, 19 Sep 2008 13:52:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1

URL:
  <http://savannah.gnu.org/bugs/?24309>

                 Summary: file name, extension, and content detection system
request
                 Project: GNUstep
            Submitted by: juanmabc
            Submitted on: Fri 19 Sep 2008 01:52:21 PM GMT
                Category: Gui/AppKit
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hello, I started my first document based app in GNUstep, all ok until I
reached the NSTypes of the AppInfo.plist file. It has NSUnixExtensions to
select the class document but my app can handle special files without
extension, like "GNUmakefile" so I miss an NSUnixNames key in NSTypes.

In the way, if i'm not wrong Unix is not completely extension based, it also
(and not instead) relies in shebangs and other file content detection
standards, like magic numbers, to control the file. So I also miss a
NSUnixType key in NSTypes.

I think that I could manage the files with special names in a "switch class
document" that parses the name of the file if I create a NSType for files
without extension, but I'm feeling like implementing what NSDocumentController
does for NSUnixExtensions parsing the extension, and like the NSWorkspace
couldn't determine that my application handles files without extension but
with special names, so I think it is better to implement it inside GNUstep,
once and for all the applications.

Further information: the "file" project determines file type, command and
library based ( http://www.darwinsys.com/file/ ).

Thank you for your work.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24309>

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





reply via email to

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