• 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 string to carbon compatible C string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa string to carbon compatible C string


  • Subject: Re: Cocoa string to carbon compatible C string
  • From: Scott Ribe <email@hidden>
  • Date: Mon, 12 May 2008 11:41:49 -0600
  • Thread-topic: Cocoa string to carbon compatible C string

There's also the issue of the lifetime of the string. Will initSomeSystem
hang on to the char * after the call returns? If so, your code will blow up
since when the NSString goes it will take with it that C string--instead
you'd have use one of the calls that *copies* the C string into a buffer
that you provide.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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: 
 >Cocoa string to carbon compatible C string (From: Steve Cronin <email@hidden>)

  • Prev by Date: Undefined lookup, ObjC, and 64-bit
  • Next by Date: Re: Undefined lookup, ObjC, and 64-bit
  • Previous by thread: Re: Cocoa string to carbon compatible C string
  • Next by thread: Custom Font Chooser
  • Index(es):
    • Date
    • Thread