From 8741007ed8f807af1eed7f44439d4228c7817a47 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Wed, 25 Sep 2002 22:55:19 +0000 Subject: [PATCH] Moved add-on methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14558 72102866-910b-0410-8b05-ffd578937521 --- Source/NSBundleAdditions.m | 50 -------------------------------------- 1 file changed, 50 deletions(-) diff --git a/Source/NSBundleAdditions.m b/Source/NSBundleAdditions.m index b7a763601..4b0c6d4f9 100644 --- a/Source/NSBundleAdditions.m +++ b/Source/NSBundleAdditions.m @@ -178,31 +178,6 @@ static const int currentVersion = 1; @implementation NSBundle (NSBundleAdditions) -- (NSString*) pathForImageResource: (NSString*)name -{ - NSString *ext = [name pathExtension]; - NSString *path = nil; - - if ((ext == nil) || [ext isEqualToString:@""]) - { - NSArray *types = [NSImage imageUnfilteredFileTypes]; - unsigned c = [types count]; - unsigned i; - - for (i = 0; path == nil && i < c; i++) - { - ext = [types objectAtIndex: i]; - path = [self pathForResource: name ofType: ext]; - } - } - else - { - name = [name stringByDeletingPathExtension]; - path = [self pathForResource: name ofType: ext]; - } - return path; -} - static Class gmodel_class(void) { @@ -418,31 +393,6 @@ Class gmodel_class(void) return nil; } -- (NSString *)pathForSoundResource:(NSString *)name -{ - NSString *ext = [name pathExtension]; - NSString *path = nil; - - if ((ext == nil) || [ext isEqualToString:@""]) - { - NSArray *types = [NSSound soundUnfilteredFileTypes]; - unsigned c = [types count]; - unsigned i; - - for (i = 0; path == nil && i < c; i++) - { - ext = [types objectAtIndex: i]; - path = [self pathForResource: name ofType: ext]; - } - } - else - { - name = [name stringByDeletingPathExtension]; - path = [self pathForResource: name ofType: ext]; - } - return path; -} - - (BOOL) loadNibFile: (NSString*)fileName externalNameTable: (NSDictionary*)context withZone: (NSZone*)zone