Re: Problem writing unit tests - "Incompatible types in initialization"
Re: Problem writing unit tests - "Incompatible types in initialization"
- Subject: Re: Problem writing unit tests - "Incompatible types in initialization"
- From: Chris Hanson <email@hidden>
- Date: Sun, 25 Oct 2009 13:38:02 -0700
On Oct 25, 2009, at 1:08 PM, Ian Piper wrote:
> testConverter = Converter.new;
Dot syntax is for accessing state (properties) of objects, not for invoking behavior.
This should be either
testConverter = [Converter new];
or
testConverter = [[Converter alloc] init];
to indicate that it’s invoking behavior rather than accessing state on the Converter class itself.
— Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden