Re: Compiles everything
Re: Compiles everything
- Subject: Re: Compiles everything
- From: Sherm Pendley <email@hidden>
- Date: Thu, 18 Nov 2004 21:52:57 -0500
On Nov 18, 2004, at 5:14 PM, Mont Rothstein wrote:
I have a project in XCode that almost always, but not always, compiles
every file every time I compile. It is killing me.
I don't even know where to start looking. Does anyone have an idea as
to why this might be happening?
This can happen if you have a lot of cross-dependencies in your headers.
As a simple rule of thumb, in my header files I only #import the header
for the superclass of the class I'm defining, or classes that I'm
extending with a category.
For all other classes - those used in arguments and return values,
static variables, structure elements, etc. - I declare them with @class
in my headers, and only use #import in the .m files that need the full
declarations to resolve method calls.
sherm--
_______________________________________________
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