37 - (id)initWithContentsOfURL:(
CPURL)aURL
63 return [_themes arrayByApplyingBlock:function(theme)
65 return theme.substring(0, theme.indexOf(".keyedtheme"));
69 - (void)loadWithDelegate:(
id)aDelegate
71 _loadDelegate = aDelegate;
73 [_bundle loadWithDelegate:self];
76 - (void)bundleDidFinishLoading:(
CPBundle)aBundle
78 _themes = [_bundle objectForInfoDictionaryKey:@"CPKeyedThemes"];
80 var count = _themes.length;
85 unarchiver = [[_CPThemeKeyedUnarchiver alloc]
89 [unarchiver decodeObjectForKey:@"root"];
91 [unarchiver finishDecoding];
96 for (var i = 0, nb = [_themes count], allThemes = [
self themeNames], aThemeName, aTheme; i < nb; i++)
98 aThemeName = allThemes[i];
101 if ([aTheme isCSSBased])
105 [_loadDelegate blendDidFinishLoading:self];
CPData staticResourceData()
CPString pathForResource:(CPString aFilename)
id initWithPath:(CPString aPath)
CPTheme themeNamed:(CPString aName)
id URLWithString:(CPString URLString)