• 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: Cocoa Classes from C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Classes from C++?


  • Subject: Re: Cocoa Classes from C++?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 27 May 2008 16:31:19 -0700


On 27 May '08, at 4:24 PM, Andrew Farmer wrote:

don't expect anything really creative (like C++ objects as member variables of an ObjC object) to work quite correctly.

We did that the PubSub framework and it works fine, actually. You just have to check the "Call C++ Ctors/Dtors in Obj-C" build option in Xcode. Note that only the default (no-args) constructor will be called, since Obj-C has no syntax to allow you to call constructors of member objects.


—Jens

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

  • Follow-Ups:
    • Re: Cocoa Classes from C++?
      • From: Todd Heberlein <email@hidden>
References: 
 >Cocoa Classes from C++? (From: "J. Todd Slack" <email@hidden>)
 >Re: Cocoa Classes from C++? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Cocoa Classes from C++?
  • Next by Date: Re: Cocoa Classes from C++?
  • Previous by thread: Re: Cocoa Classes from C++?
  • Next by thread: Re: Cocoa Classes from C++?
  • Index(es):
    • Date
    • Thread