mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 11:40:59 +00:00
Use runtime to find backend if not BACKEND_BUNDLE
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10024 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
28cd689475
commit
4957e6afc3
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-05-25 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSApplication.m (initialize_gnustep_backend): Use runtime
|
||||||
|
(NSBundle) to find backend if not BACKEND_BUNDLE.
|
||||||
|
|
||||||
2001-05-24 Adam Fedor <fedor@gnu.org>
|
2001-05-24 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/NSApplication.m (initialize_gnustep_backend): Check if
|
* Source/NSApplication.m (initialize_gnustep_backend): Check if
|
||||||
|
|
|
@ -147,11 +147,11 @@ initialize_gnustep_backend(void)
|
||||||
|
|
||||||
if( first )
|
if( first )
|
||||||
{
|
{
|
||||||
|
Class backend;
|
||||||
|
|
||||||
first = 0;
|
first = 0;
|
||||||
#ifdef BACKEND_BUNDLE
|
#ifdef BACKEND_BUNDLE
|
||||||
{
|
{
|
||||||
Class backend;
|
|
||||||
NSBundle *theBundle;
|
NSBundle *theBundle;
|
||||||
NSEnumerator *benum;
|
NSEnumerator *benum;
|
||||||
NSString *path, *bundleName;
|
NSString *path, *bundleName;
|
||||||
|
@ -185,7 +185,11 @@ initialize_gnustep_backend(void)
|
||||||
[backend initializeBackend];
|
[backend initializeBackend];
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
[GSBackend initializeBackend];
|
/* GSBackend will be in a separate library, so use the runtime
|
||||||
|
to find the class and avoid an unresolved reference problem */
|
||||||
|
backend = [[NSBundle gnustepBundle] classNamed: @"GSBackend"];
|
||||||
|
NSCAssert(backend, @"Can't find backend context");
|
||||||
|
[backend initializeBackend];
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue