Re: Problem chaining initialization methods

2010-01-03 Thread Rick Genter
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; >

Re: Problem chaining initialization methods

2010-01-03 Thread Dave DeLong
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

Problem chaining initialization methods

2010-01-03 Thread Mike Chambers
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