Re: Building with Subclasses
Re: Building with Subclasses
- Subject: Re: Building with Subclasses
- From: Joakim Danielson <email@hidden>
- Date: Sun, 16 Jan 2005 19:26:21 +0100
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