Hi,

I noticed that once ProjectCenter is installed, it should show icons for its files, however this works only for the project file, but not the various .h, .m and .c files.

In NSTypes, the project file is registered as:
    {
      NSDocumentClass = PCProjectDocument;
      NSHumanReadableName = "GNUstep project";
      NSIcon = FileProject.tiff;
      NSName = GSPCProjectFileType;
      NSRole = Editor;
      NSUnixExtensions = ( pcproj );
    },

and this is fine and works fine.

For .H and ,M files I have:
    {
      NSDocumentClass = PCClassDocument;
      NSHumanReadableName = "Objective C class file";
      NSIcon = ProjectCenter.editor/Resources/FileM.tiff;
      NSName = GSClassType;
      NSRole = Editor;
      NSUnixExtensions = ( m );
    },

It looks quite the same, although one sees that NSIcon is a sub-path.
It gets installed exactly in that place:

> ls Resources/ProjectCenter.editor/Resources/FileM.tiff
Resources/ProjectCenter.editor/Resources/FileM.tiff

So it looks fine. Why doesn't it work?
A double-click on a .h file will in my case open ProjectCenter (I can see the Tool in the GWorkspace Inspector) but no icon shows.

Is this perhaps wrong? should the icons move to the app's resources Root? Apparently the idea was that that different editors (PC is modular) could contribute editing for different file types.

Riccardo

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to