mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-05-07 04:21:06 +00:00
Fix plugin loading from framework
This commit is contained in:
parent
59775174d7
commit
9e5e9f8c04
2 changed files with 3 additions and 6 deletions
|
@ -79,10 +79,6 @@ Gorm_RESOURCE_FILES = \
|
||||||
Palettes/2Controls/2Controls.palette \
|
Palettes/2Controls/2Controls.palette \
|
||||||
Palettes/3Containers/3Containers.palette \
|
Palettes/3Containers/3Containers.palette \
|
||||||
Palettes/4Data/4Data.palette \
|
Palettes/4Data/4Data.palette \
|
||||||
Plugins/Gorm/Gorm.plugin \
|
|
||||||
Plugins/Nib/Nib.plugin \
|
|
||||||
Plugins/GModel/GModel.plugin \
|
|
||||||
Plugins/Xib/Xib.plugin \
|
|
||||||
Images/GormClass.tiff \
|
Images/GormClass.tiff \
|
||||||
Images/GormFilesOwner.tiff \
|
Images/GormFilesOwner.tiff \
|
||||||
Images/GormFirstResponder.tiff \
|
Images/GormFirstResponder.tiff \
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
NSArray *array;
|
NSArray *array;
|
||||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||||
NSArray *userPlugins = [defaults arrayForKey: USER_PLUGINS];
|
NSArray *userPlugins = [defaults arrayForKey: USER_PLUGINS];
|
||||||
|
NSBundle *bundle = [NSBundle bundleForClass: [self class]];
|
||||||
|
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self == nil)
|
if (self == nil)
|
||||||
|
@ -65,8 +66,8 @@
|
||||||
plugins = [[NSMutableArray alloc] init];
|
plugins = [[NSMutableArray alloc] init];
|
||||||
pluginNames = [[NSMutableArray alloc] init];
|
pluginNames = [[NSMutableArray alloc] init];
|
||||||
|
|
||||||
array = [[NSBundle mainBundle] pathsForResourcesOfType: @"plugin"
|
array = [bundle pathsForResourcesOfType: @"plugin"
|
||||||
inDirectory: nil];
|
inDirectory: nil];
|
||||||
if ([array count] > 0)
|
if ([array count] > 0)
|
||||||
{
|
{
|
||||||
unsigned index;
|
unsigned index;
|
||||||
|
|
Loading…
Reference in a new issue