Re: Building with Subclasses
Re: Building with Subclasses
- Subject: Re: Building with Subclasses
- From: August Trometer <email@hidden>
- Date: Sun, 16 Jan 2005 17:32:46 -0500
Thanks for the response!
Unfortunately, this is exactly what I'm doing.
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.
-- August
On Jan 16, 2005, at 1:26 PM, Joakim Danielson wrote:
Hi
In your subclass header file you must import the header file of the
superclass, you can't use @class for a superclass. You should not need
to import the superclass in the .m file.
Also do a "Clean" of your target before you build it again otherwise
some old build files (.o files) might give you trouble.
Joakim
On 2005-01-16, at 19.08, August Trometer wrote:
I'm sure this is an easy one, but...
I've written several subclasses -- one main subclass, which is a
subclass of NSObject, and the rest, which are subclasses of the main
subclass. When I try to use these, I'm running into numerous build
errors.
Either the app won't build at all because the subclass is undefined,
or, if I use enough #imports (@class won't work) in the right places,
the app will build, but only in development mode. The dev-mode build
gives me lots of Zerolink warnings about "duplicate symbols." In
deployment mode, it won't build at all.
Obviously, I'm not importing these subclasses correctly, so my
question is, where and how is the best way to do this?
Thanks!
August
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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