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!");