• 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
Can I remove Prefix.pch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I remove Prefix.pch?


  • Subject: Can I remove Prefix.pch?
  • From: Bob Ueland <email@hidden>
  • Date: Fri, 27 Jul 2007 03:11:08 -0700 (PDT)

I created a new Cocoa application called prog3, and  noticed that the following file resides in the "OtherSources" folder:
prog3_Prefix.pch. The file contains this the following text:
// Prefix header for all source files of the 'prog3' target in the 'prog3' project
#ifdef __OBJC__
    #import <Cocoa/Cocoa.h>
#endif

In ADC Home > Reference Library > Guides > Tools > Xcode > Xcode 2 User Guide > Optimizing the Edit-Build-Debug Cycle >
there is a section called “Using a Precompiled Prefix Header” which says “A precompiled header is a file… used by the compiler to compile a source file. Using precompiled headers, you can significantly reduce the amount of time spent building your product. "

Now I’m just learning the basics of Objective-C using Kochan’s book “Programming in Objective-C” and I’m not interested in the fast compilation for the time being. Is there a way for me to remove this file for all my new projects and is it safe to do so?

In one of the older post I found the following sentence: “ To turn it off, open your project's target settings, find the GCC compiler settings, and uncheck the "precompile" check box.” I could not find any such thing, maybe because this post is from 2003.
BTW why is it called Prefix.pch. A prefix is something you add in front of a word, and what does pch stand for (I guess precompiled header, but I’m usually lousy when it comes to guessing what abbreviations stand for).

Thanks for your help
Bob





____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Can I remove Prefix.pch?
      • From: ∞ <email@hidden>
  • Prev by Date: [update] NSURLConnection/NSURLDownload max simultaneous connections
  • Next by Date: Re: Can I remove Prefix.pch?
  • Previous by thread: Re: [update] NSURLConnection/NSURLDownload max simultaneous connections
  • Next by thread: Re: Can I remove Prefix.pch?
  • Index(es):
    • Date
    • Thread