• 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: Compiles everything
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Compiles everything
      • From: Wade Tregaskis <email@hidden>
References: 
 >Compiles everything (From: Mont Rothstein <email@hidden>)

  • Prev by Date: Re: CFPreferences calls in Cocoa apps
  • Next by Date: Re: Compiles everything
  • Previous by thread: Re: Compiles everything
  • Next by thread: Re: Compiles everything
  • Index(es):
    • Date
    • Thread