On 2/5/09 11:52 PM, Iceberg-Dev said: >I would like to transform a NSString to a NSString conforming to the >C string format. > >Examples: >--------- > >toto -> toto > >"toto -> \"toto > >toto -> toto\ntiti >titi
I think people are misunderstanding your question. I doubt Cocoa has any built-in functionality to turn a string into something a C compiler would accept. You'll have to code up this logic yourself. Using a mutable string seems reasonable. -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com