- (WOComponentDefinition *)definitionForComponent:(id)_name
languages:(NSArray *)_langs
{
+ /* Note: the framework will be determined base on the class '_name' */
return [self definitionForComponent:_name inFramework:nil languages:_langs];
}
/*
TODO: this appears to be deprecated since the WOComponent initializer
is now -initWithContext: and we have no context here ...
+ Also misses the framework?
*/
NSAutoreleasePool *pool = nil;
WOComponentDefinition *cdef = nil;
if ((rm = [[_ctx component] resourceManager]) == nil)
rm = [self resourceManager];
- page = [rm pageWithName:(_name ? _name : @"Main")
+ page = [rm pageWithName:(_name != nil ? _name : @"Main")
languages:languages];
[page ensureAwakeInContext:_ctx];
if ((rm = [self resourceManager]) == nil)
return nil;
- return [rm pageWithName:_name ? _name : @"Main"
+ return [rm pageWithName:(_name != nil) ? _name : @"Main"
languages:[_req browserLanguages]];
}