URL: <http://savannah.gnu.org/bugs/?25793>
Summary: [NSImage imageNamed: @"GNUstep"] broken Project: GNUstep Submitted by: FredKiefer Submitted on: So 08 Mär 2009 21:16:38 GMT Category: Gui/AppKit Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: I was using the old test application gui_test3 to track down my cairo drawing problem on SuSE 11.1 and noticed that nothing gets drawn, not just in cairo, but for all backends. After some bug hunting I understood that the proxy returned by [NSImage imageNamed: @"GNUstep"] was pointing to a nil image. The next step was to add an NSLog statement at the end of NSImage setName: and this statement NSLog(@"name %@ self %@ proxy %@", aName, self, proxy); resulted in this output 2009-03-08 22:16:26.776 image_draw[15391] name GNUstep self <NSImage: 0x825e498> proxy <NSImage: 0x825e498> 2009-03-08 22:16:26.779 image_draw[15391] name NSApplicationIcon self <NSImage: 0x825e498> proxy <NSImage: 0x825e498> Looks like the same image gets two different names assigned. Now this used to work and it most likely got broken by the proxy introduced for the theme handling. As that proxy is only needed for switching themes in the middle of running an application, I would like to suggest to take back that feature until we have it fully working. A correctly working imageNamed method seems much more important to me. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?25793> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnustep