Re: create NSMutableString with no limit?
Re: create NSMutableString with no limit?
- Subject: Re: create NSMutableString with no limit?
- From: Paul Lynch <email@hidden>
- Date: Sat, 18 Mar 2006 22:46:07 +0000
On 18 Mar 2006, at 22:37, James W. Walker wrote:
What's the right way to create an NSMutableString with no limit on
its capacity? The only initialization method listed in the docs is
initWithCapacity, and it doesn't say you can pass 0 as the
capacity. I can take advantage of toll-free bridging and say
(NSMutableString*)CFStringCreateMutable( NULL, 0 ), but there must
be a more obvious way.
Capacity is not a limit; it is a hint. So use any number you feel
like. Zero might even work; I haven't tried.
I notice that there is a potential conflict in the descriptions of
NSMutableString and CFStringCreateMutable in the way that capacity is
described.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden