• 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: Building with Subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building with Subclasses


  • Subject: Re: Building with Subclasses
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 17 Jan 2005 00:34:59 +0100

At 17:32 Uhr -0500 16.01.2005, August Trometer wrote:
I #import the main class header in the headers of each of the subclasses. The "duplicate symbol" error leads me to believe that it's somehow trying to declare the class more than once, but my understanding of the #import statements is that this prevents multiple declarations.

Are you perhaps defining a global variable or something similar in the header? You mustn't define anything in the header, only declarations are allowed. Definitions go in only one of the .m files.


 Does it error on your class name, or on other symbols in the file?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
       "The Witnesses of TeachText are everywhere..."
                   http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Building with Subclasses (From: August Trometer <email@hidden>)
 >Re: Building with Subclasses (From: Joakim Danielson <email@hidden>)
 >Re: Building with Subclasses (From: August Trometer <email@hidden>)

  • Prev by Date: Inserting text
  • Next by Date: @interface MyController for ThumbnailMatrix.h? Why? Confused?
  • Previous by thread: Re: Building with Subclasses
  • Next by thread: Modal Window Question
  • Index(es):
    • Date
    • Thread