• 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: Mixing Objective-C and C++ classes; How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing Objective-C and C++ classes; How?


  • Subject: Re: Mixing Objective-C and C++ classes; How?
  • From: "Michael A. Crawford" <email@hidden>
  • Date: Thu, 06 Aug 2009 18:58:50 -0400

Problem solved. As it turns out the problem was that the class is declared in a C++ namespace. I did not properly scope the class nor was I using a 'using namespace' statement.

-Michael
----------------------
The united stand.  The divided get played.

-- Bernie MAC


On Aug 6, 2009, at 4:59 PM, Shawn Erickson wrote:

On Thu, Aug 6, 2009 at 1:51 PM, Michael A.
Crawford<email@hidden> wrote:
Should the following work (assuming it is included in an Objective- C file
with a .mm extension)?


@interface CDBPMDetectOperation : NSOperation <CDAudioTrackDelegate>
{
class BPMDetect* bpmDetector; // C++ class as an objective-c class member
}

/me points at...

<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocCPlusPlus.html >

-Shawn

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Mixing Objective-C and C++ classes; How? (From: "Michael A. Crawford" <email@hidden>)
 >Re: Mixing Objective-C and C++ classes; How? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Core Data completely unable to find the source object model for migration
  • Next by Date: Re: Disabling Exposé in SystemUIMode
  • Previous by thread: Re: Mixing Objective-C and C++ classes; How?
  • Next by thread: Custom Table View Cells and String Text Alignment and Breaking
  • Index(es):
    • Date
    • Thread