• 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[2]: C++ in a Cocoa App - How Hard is THAT?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: C++ in a Cocoa App - How Hard is THAT?


  • Subject: Re[2]: C++ in a Cocoa App - How Hard is THAT?
  • From: Lance Drake <email@hidden>
  • Date: Fri, 7 Oct 2005 18:21:49 -0600

Good Golly! Thanks so much for the immediate response and especially helpful instructions.

The file has a '.cpp' suffix. It's already compiling OK - as far as I can tell - it seems more like the big problem is in making a reference to that thing from out of the Obj-C world. As a test, I changed it to '.mm' - but nothing is behaved any differently.

The page at <http://developer.apple.com/releasenotes/Cocoa/Objective-C++.html> has lots to say about this topic - but, so far, I can't get it happen for me. For instance - at the beginning of the '.m' file in which I would like to refer to the C++ object - there's an error generated with the sequence:

// ---------------------
// <x-tad-bigger>TEST_MAIN</x-tad-bigger>.m

#import <Cocoa/Cocoa.h>

class myCPPfile;
...
...

<x-tad-bigger>ERROR: /Volumes/dev/CPP_TEST/TEST_MAIN.h:11: warning: data definition has no type or storage class
</x-tad-bigger>


Anyway - the Mac developer community is the BEST - thanks for the moral support - I'll keep drilling down...

Best Wishes,

Lance Drake




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Re[2]: C++ in a Cocoa App - How Hard is THAT?
      • From: "Corey O'Connor" <email@hidden>
    • Re: Re[2]: C++ in a Cocoa App - How Hard is THAT?
      • From: Eric Albert <email@hidden>
  • Prev by Date: Re: C++ in a Cocoa App - How Hard is THAT?
  • Next by Date: Re: C++ in a Cocoa App - How Hard is THAT?
  • Previous by thread: Re: C++ in a Cocoa App - How Hard is THAT?
  • Next by thread: Re: Re[2]: C++ in a Cocoa App - How Hard is THAT?
  • Index(es):
    • Date
    • Thread