On Jan 3, 2010, at 6:36 PM, Mike Chambers wrote:
> -(id)initWithArray:(NSArray *)arr forKeyPath:(NSString *)keyPath
> {
> NSString *capPath = [keyPath capitalizedString];
> if(![self initWithArray:arr forKeyPath:keyPath andTitle: capPath]);
> {
> return nil;
>
A simple glance over looks like you're missing the assignation to self.
Shouldn't it be if (!(self = [self initWithArray:arr forKeyPath:keyPath
andTitle:capPath])) { ... ?
Dave
On Jan 3, 2010, at 7:36 PM, Mike Chambers wrote:
> So, does anyone see anything obviously wrong with how I am chainin
I am having a weird problem when chaining initializers in a class
which extends NSPredicateEditorRowTemplate.
If I call the
-(id)initWithArray:(NSArray *)arr forKeyPath:(NSString *)keyPath
andTitle:(NSString *)title
initializer directly when initializing, then everything works.
However, if I cal