Le 17/11/2015 18:47, Riccardo Mottola a écrit :
Hi,

I want to be able to theme the recycler bin icons of GWorkspace.

The icons themselves are in "many places" I find the Recycler icon in
three places:

Framework: /FSNode/Resources/Images/Recycler.tiff
GWorkspace app: /GWorkspace/Resources/Icons/Recycler.tiff
Recycler app: Recycler/Resources/Images/Recycler.tiff

The code however is done like this:

NSBundle *bundle = [NSBundle bundleForClass: [FSNodeRep class]];

imagepath = [bundle pathForResource: @"Recycler" ofType: @"tiff"];
trashIcon = [[NSImage alloc] initWithContentsOfFile: imagepath];

I think this code is done so that the Framework's Resource,
indepdendently if it is called from inside GWorkspace or Recycler.

Can I "theme" a Framework by specifying a bundle idnentifier?


I can't answer this question, but I can tell that the only icon I had to subsitute with my Recycler icon is the FSNode one. The two other icons are not used in the Dock.
Bertrand


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to