I'm trying to set some preferences in .GNUstepExtPrefs using NSWorkspace's
-setBestApp:inRole:forExtension: 
I think that, near the end of the method, there is an error.
In these lines:

  [map setObject: inf forKey: ext];
  RELEASE(inf);
  RELEASE(extPreferences);
  extPreferences = inf;
  data = [NSSerializer serializePropertyList: extPreferences];
  [data writeToFile: extPrefPath atomically: YES];

I think that

"extPreferences = inf;"
must be 
"extPreferences = map";

else the path extension is not included in the dictionary.

Tried to correct and recompiled, I can see all the information in the
dictionary "{gdr = {Editor = nedit.app; }; }", for  example, but
NSWorkspace doesn't open a file ".gdr" with the new app.
Can somebody help me? 

Reply via email to