mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 09:51:23 +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
c4d18c4dec
commit
d6e7072b6e
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 %@"),
|
_(@"Can't load object file from backend at path %@"),
|
||||||
path);
|
path);
|
||||||
|
|
||||||
/* Now extract the GSBackend class from the loaded bundle. */
|
/* Now get the GSBackend class, which should have just been loaded
|
||||||
backend = [theBundle classNamed: @"GSBackend"];
|
* from the bundle. */
|
||||||
|
backend = NSClassFromString (@"GSBackend");
|
||||||
NSCAssert1 (backend != Nil,
|
NSCAssert1 (backend != Nil,
|
||||||
_(@"Backend at path %@ doesn't contain the GSBackend class"),
|
_(@"Backend at path %@ doesn't contain the GSBackend class"),
|
||||||
path);
|
path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue