re: c2pstr
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