bugGNUstep - Bugs: bug #24309, file name, extension, and content...

Group
 
 

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

Submitter:  Juan Manuel Borges Caño <juanmabc>
Submitted:  Fri 19 Sep 2008 01:52:21 PM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Sep 2008 01:52:21 PM UTC, original submission:  

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.

Juan Manuel Borges Caño <juanmabc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by juanmabc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code