[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSBundle and Frameworks
From: |
David Wetzel |
Subject: |
NSBundle and Frameworks |
Date: |
Sat, 2 Dec 2017 23:46:40 -0500 |
Hi!
I don't know if I shot my GNUstep installation by updating some FreeBSD ports,
but I had to add this to make GSWeb find MIME.plist
My frameworks are in
/usr/local/GNUstep/Local/Library/Frameworks/
The lib in
/usr/local/lib/libWebObjects.so.1
This was just a fast hack. I feel like we should have a nicer refactored
version of
+ _addFrameworkFromClass:
Is anybody seeing this too?
Cheers,
David
*** /home/dave/libs-base/Source/NSBundle.m Sat Dec 2 23:34:52 2017
--- NSBundle.m Sat Dec 2 23:39:46 2017
***************
*** 28,34 ****
<title>NSBundle class reference</title>
! $Date$ $Revision$
*/
#define EXPOSE_NSBundle_IVARS 1
--- 28,34 ----
<title>NSBundle class reference</title>
! $Date: 2016-06-27 20:06:12 +0100 (Mon, 27 Jun 2016) $ $Revision: 39933 $
*/
#define EXPOSE_NSBundle_IVARS 1
***************
*** 804,809 ****
--- 804,818 ----
bundlePath = [bundlePath stringByDeletingLastPathComponent];
pathComponent = [bundlePath lastPathComponent];
+ if ([pathComponent isEqual: @"Library"])
+ {
+ bundlePath = [bundlePath stringByAppendingPathComponent:
@"Frameworks"];
+ bundlePath = [bundlePath stringByAppendingPathComponent:
+ [NSString stringWithFormat: @"address@hidden@", name,
@".framework"]];
+ /* Try creating the bundle. */
+ if (bundlePath)
+ bundle = [[self alloc] initWithPath: bundlePath];
+ }
if ([pathComponent isEqual: @"Versions"])
{
bundlePath = [bundlePath stringByDeletingLastPathComponent];
- NSBundle and Frameworks,
David Wetzel <=