mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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
This commit is contained in:
parent
a92e6cdeec
commit
1b95651245
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue