• 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: Using C++ classes from Objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using C++ classes from Objective C


  • Subject: Re: Using C++ classes from Objective C
  • From: Scott Thompson <email@hidden>
  • Date: Thu, 20 Mar 2008 21:57:10 -0500


On Mar 20, 2008, at 2:34 PM, Jeremy wrote:

Thanks everyone!
Using a void* for the member variable of my wrapper class did the trick and I now have my Objective C code calling my C++ code!


What is the best way to pass strings from my Objective C code to my C ++ code though?
I started looking at the unichar definition and the methods on NSString, but would like to know if there is an obvious standard for dealing with the unicode issues.

Are your C++ classes using CFStringRef, or std::string, or something else?


Do you try and use wchar_t in your C++?

Scott
_______________________________________________

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: 
 >Using C++ classes from Objective C (From: Jeremy <email@hidden>)
 >Re: Using C++ classes from Objective C (From: "Rob Napier" <email@hidden>)
 >Re: Using C++ classes from Objective C (From: John Stiles <email@hidden>)
 >Re: Using C++ classes from Objective C (From: Jeremy <email@hidden>)
 >Re: Using C++ classes from Objective C (From: "Rob Napier" <email@hidden>)
 >Re: Using C++ classes from Objective C (From: Jeremy <email@hidden>)

  • Prev by Date: Re: Simple messages problem
  • Next by Date: sheet appears as normal window?
  • Previous by thread: Re: Using C++ classes from Objective C
  • Next by thread: Correct procedure for safely swapping a text storage?
  • Index(es):
    • Date
    • Thread