iphone - Are there any more methods than dataFromPropertyList:format:errorDescription: which do not follow the basic rules of the object ownership policy? -
Like the apple, the datafropperlist list: format: error decryption: the method object does not follow the ownership policy. This is a description of the method in context. I have tried searching for "caller-issued", but no useful results.
There is a quote from this context:
Unlike special general, the memory management rule for the cola, the string string returned in error requires the caller to be issued.
I am sure that this is not the only case, where the exception is in the policy.
This is a documentation bug, such as It was right for Mac OS X 10.4 and earlier, but this is not true for Mac programs compiled against 10.5 SDKs. I believe this is not true even for the iPhone, but he has not tested it. (To test, generate an error, release the string, and see if you are crashing.)
With the same problem I am finding that there is only one way + PropertyListFromData: mutabilityOption: format: error description: , which was fixed at the same time.
When 10.5 SDK was released, I filed a bug () on the documentation, in which you had a citation warning for both methods. The warning was deleted, but it has been read. I have requested that the bug be opened again.
Comments
Post a Comment