- (id) init {
        if(self == [super init]){
                Year = 0;
                orignalYear = 0;
        }
        return (self);
}

In addition to the other comments regarding calling super, you don't need to initialize instance variables to values like 0, 0.0, NO, nil, NULL. The runtime will do that for you. Note, that it doesn't do the same for local variables.

Jonathan

http://madebysofa.com

_______________________________________________

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