From d6e7072b6e8b0ad2713a1591c6c4763f50d972f9 Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 15 Oct 2002 00:47:52 +0000 Subject: [PATCH] Get the GSBackend class in a safer way git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14783 72102866-910b-0410-8b05-ffd578937521 --- Source/NSApplication.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/NSApplication.m b/Source/NSApplication.m index a6a869982..1dd245fce 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -203,8 +203,9 @@ initialize_gnustep_backend(void) _(@"Can't load object file from backend at path %@"), path); - /* Now extract the GSBackend class from the loaded bundle. */ - backend = [theBundle classNamed: @"GSBackend"]; + /* Now get the GSBackend class, which should have just been loaded + * from the bundle. */ + backend = NSClassFromString (@"GSBackend"); NSCAssert1 (backend != Nil, _(@"Backend at path %@ doesn't contain the GSBackend class"), path);