• 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: Adding obj-c++ file to carbon project changes preprocessed header file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding obj-c++ file to carbon project changes preprocessed header file types


  • Subject: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 12 Feb 2008 23:03:39 -0800


On 12 Feb '08, at 10:06 PM, Russ wrote:

I eventually had to set up a separate library to contain the snippet of Cocoa
code I need, even after adding the requisite ifdefs. I couldn't figure out how
to set up a completely separate set of include paths for the cocoa and c++ code
within one project; there's a lot of nested-include clashing otherwise.

Unless I'm misunderstanding, it should just mean setting up the prefix file/precompiled header as something like:


#ifdef __cplusplus
#include "cplusplusstuff.h"
#endif

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

—Jens_______________________________________________

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: Adding obj-c++ file to carbon project changes preprocessed header file types
      • From: Russ <email@hidden>
References: 
 >Re: Adding obj-c++ file to carbon project changes preprocessed header file types (From: Russ <email@hidden>)

  • Prev by Date: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Next by Date: CoreData,Bindings,AutoComplete,NSComboBox
  • Previous by thread: Re: Adding obj-c++ file to carbon project changes preprocessed header file types -- NSCursor mouse glitches
  • Next by thread: Re: Adding obj-c++ file to carbon project changes preprocessed header file types
  • Index(es):
    • Date
    • Thread