Re: duplicate decalration for protocol
Re: duplicate decalration for protocol
- Subject: Re: duplicate decalration for protocol
- From: Andrew Farmer <email@hidden>
- Date: Mon, 10 Nov 2008 23:44:02 -0800
On 10 Nov 08, at 01:40, pan xuan wrote:
I have two classes that both conform to a protocol ABC. Now the
third class needs to import those two classes and I got a warning
duplicate declaration for protocol ABC. Could anybody tell me how to
reduce this kind of warning?
Assuming that you're currently declaring the protocol in both header
files, move the declaration to a new file and #import it from both of
the headers.
_______________________________________________
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