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/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep