Re: Creating NSStrings without copying memory
Re: Creating NSStrings without copying memory
- Subject: Re: Creating NSStrings without copying memory
- From: Jens Alfke <email@hidden>
- Date: Tue, 2 May 2017 17:17:47 -0700
> On May 2, 2017, at 1:42 PM, Mike Abdullah <email@hidden> wrote:
>
> Drop down to CFString. It has similar api to the NSData one you like.
Oh, you mean CFStringCreateWithBytesNoCopy? You’re right, I can use that the same way. I was being fixated on something that takes a block, and didn’t realize that (with a bit more work) I can make a custom CFAllocator that gives me the same control. Thanks!
—Jens
_______________________________________________
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