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

re: c2pstr


  • Subject: re: c2pstr
  • From: George Warner <email@hidden>
  • Date: Thu, 10 Apr 2008 11:22:11 -0700
  • Thread-topic: c2pstr

On Thu, 10 Apr 2008 00:14:07 -0400, Charlie Dickman <email@hidden>
wrote:

> Now that c2pstr is deprecated how do you convert a c string or a Cocoa
> string to a pascal string for use with debugStr?
>
> I've been using
>
> DebugStr(c2pstr ((char *) [[NSString stringWithFormat: @"%s @ %d",
> __func__, __LINE__]
>        cStringUsingEncoding: NSASCIIStringEncoding]))
>

I'd switch to using NSLog or printf (or fprintf( stderr,...)).

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)


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

This email sent to email@hidden

  • Prev by Date: NSTextField and MVC-compliance?
  • Next by Date: Re: Debugging __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__
  • Previous by thread: Re: c2pstr
  • Next by thread: Ok, now how do I _stop_ running Leaks?
  • Index(es):
    • Date
    • Thread