|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
DOH!!!
On Oct 28, 2006, at 1:38 PM, Jonathan Kew wrote:
On 28 Oct 2006, at 4:27 pm, David M. Cotter wrote:
// null terminated UTF16 string "Hi!" #define numChars 3 static UniChar bufZZ[numChars] = { 0x0048, 0x0069, 0x0021 };
CFStringRef ref = CFStringCreateWithCharacters(kCFAllocatorNull, bufZZ, numChars);
okay what's wrong with this?
kCFAllocatorNull won't work as an allocator! (Look it up in the CFAllocator doc.)
You probably meant kCFAllocatorDefault (or NULL, which is the same thing).
JK
_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >create CFString from scrap data? (From: "David M. Cotter" <email@hidden>) | |
| >Re: create CFString from scrap data? (From: "Gary L. Wade" <email@hidden>) | |
| >Re: create CFString from scrap data? (From: "David M. Cotter" <email@hidden>) | |
| >Re: create CFString from scrap data? (From: Laurence Harris <email@hidden>) | |
| >Re: create CFString from scrap data? (From: "David M. Cotter" <email@hidden>) | |
| >Re: create CFString from scrap data? (From: Jonathan Kew <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.