• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: duplicate decalration for protocol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >duplicate decalration for protocol (From: pan xuan <email@hidden>)

  • Prev by Date: Re: Stop NSFileManager copyFile in progress? Can you kill a thread?
  • Next by Date: CA: fillMode and rotation animation . . .
  • Previous by thread: duplicate decalration for protocol
  • Next by thread: Floating point pixel data / image handling confusion
  • Index(es):
    • Date
    • Thread