From 1223a6c0ee91d3dc9a3189384424219034eaefbc Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 30 Oct 2012 09:41:20 -0400 Subject: [PATCH] make use of -[WOComponent componentBundle] --- UI/Scheduler/UIxComponentEditor.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index d53929de0..cb9ac882f 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -1462,14 +1462,12 @@ RANGE(2); ////////////////////////////////// JUNK //////////////////////////////////////// - (NSArray *) cycles { - NSBundle *bundle; NSString *path; static NSArray *cycles = nil; if (!cycles) { - bundle = [NSBundle bundleForClass:[self class]]; - path = [bundle pathForResource: @"cycles" ofType: @"plist"]; + path = [[self componentBundle] pathForResource: @"cycles" ofType: @"plist"]; NSAssert(path != nil, @"Cannot find cycles.plist!"); cycles = [[NSArray arrayWithContentsOfFile:path] retain]; NSAssert(cycles != nil, @"Cannot instantiate cycles from cycles.plist!");