by Delphine <it.emeraldion@[EMAIL PROTECTED]
>
Sep 19, 2007 at 10:32 AM
YL ha scritto:
> We get a c-string from NSString like this:
> char* aString = [MyString cString];
> But how to manage the memory of aString?
>
> i.e. When I don't need aString anymore, I have to free it or not?
>
> Thanks
AFAIK, aString is autoreleased (assuming there's an NSAutoreleasePool
around). It will be automatically released unless explicitly retained.
--
Digito ergo sum