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 (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 [EMAIL PROTECTED]

Reply via email to