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 chaining
> the initializers below?
> 
> -(id)initWithArray:(NSArray *)arr forKeyPath:(NSString *)keyPath
> {
>       NSString *capPath = [keyPath capitalizedString];
>       if(![self initWithArray:arr forKeyPath:keyPath andTitle: capPath]);
>       {
>               return nil;
>       }
>       
>       return self;
> }

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to