• 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: Translate into ObjectiveC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Translate into ObjectiveC


  • Subject: Re: Translate into ObjectiveC
  • From: Seth Willits <email@hidden>
  • Date: Thu, 10 Feb 2005 15:27:37 -0800

On Feb 10, 2005, at 3:02 PM, Brian O'Brien wrote:

std::list<std::string> listOfNames;

This is a list of names in C++.
Whats the quickest way to pass this into an objective C method?
I assume it needs to be converted to an NSObject of some time... but what?

There's no easy way to do it, but it's not hard either.

Create an NSMutableArray, iterate through listOfNames and add them to the array.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


A one-question geek test. If you get the joke, you're a geek:
Seen on a California license plate on a VW Beetle: "FEATURE"
-- Definitely A Geek
------------------------------------------------------------------------ ---


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


  • Follow-Ups:
    • Re: Translate into ObjectiveC
      • From: Shawn Erickson <email@hidden>
References: 
 >Translate into ObjectiveC (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: License server
  • Next by Date: Threads and C functions
  • Previous by thread: Translate into ObjectiveC
  • Next by thread: Re: Translate into ObjectiveC
  • Index(es):
    • Date
    • Thread