Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStringCreateMutable max size question



On 3/31/05 2:48 AM, Laurence Harris didst favor us with:

> If I pass a maxSize > 0 to CFStringCreateMutable, what advantages does that
> offer me? Will it allocate that much space so I can append to the string
> without forcing reallocation?

Answering my own question: It doesn't seem to offer any advantages at all,
it just limits the size. In fact, it makes appending to the string slower if
it has a max size. So that leaves me wondering why one would ever create a
mutable CFString with any size limitation.

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >CFStringCreateMutable max size question (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.