after calling TNSMutableDictionary.Create do we need to call release?

  

after reading the excelent post from Dalija Prasnikar iOS objective-c object: When to use release and when to not use it I learned :

Methods whose name begins with alloc, new, copy, or mutableCopy don’t
require calls to retain. On the contrary, if you call it you will
create a memory leak because there will be one retain too many. But
they do require release or autorelease. Those object instances are the
ones you have created, and under Objective-C they are automatically
retained when constructed.

However what about the create ? for exemple doing myDict: = TNSMutableDictionary.Create do I need later to call myDict.release?

what is exactly the difference between

TNSMutableDictionary.Wrap(TNSMutableDictionary.Wrap(TNSMutableDictionary.OCClass.alloc).init);

and

TNSMutableDictionary.Create ?

Comments are closed.