mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
ca76560c9e
commit
59384d53aa
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>
|
||||
|
||||
* Source/NSApplication.m (initialize_gnustep_backend): Check if
|
||||
|
|
|
@ -147,11 +147,11 @@ initialize_gnustep_backend(void)
|
|||
|
||||
if( first )
|
||||
{
|
||||
Class backend;
|
||||
|
||||
first = 0;
|
||||
#ifdef BACKEND_BUNDLE
|
||||
{
|
||||
Class backend;
|
||||
NSBundle *theBundle;
|
||||
NSEnumerator *benum;
|
||||
NSString *path, *bundleName;
|
||||
|
@ -185,7 +185,11 @@ initialize_gnustep_backend(void)
|
|||
[backend initializeBackend];
|
||||
}
|
||||
#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
|
||||
}
|
||||
return YES;
|
||||
|
|
Loading…
Reference in a new issue