Am 17.11.2015 um 18:47 schrieb Riccardo Mottola <riccardo.mott...@libero.it>: > NSBundle *bundle = [NSBundle bundleForClass: [FSNodeRep class]]; > > imagepath = [bundle pathForResource: @"Recycler" ofType: @"tiff"]; > trashIcon = [[NSImage alloc] initWithContentsOfFile: imagepath];
You should be using pathForImageResource: here. > 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? > > Nevertheless, having duplication, I tried to "theme" this quick way: > trashIcon = [[NSImage imageNamed:@"Recycler.tiff"] retain]; When using imageNamed: you should leave out the extension. Hope this helps, Fred _______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev