I added NSInvocation to a dictionary to execute some commands I need, but I am afraid of the NSInvocation will retain the arguments it obtained, for example, self, _cmd, and the arguments I set. When I add NSInvocation to a dictionary, the dictionary will retain the NSInvocation, and does it retains those arguments too ?
Share
NSInvocationdoes not retain the target, selector or arguments unless you send it theretainArgumentsmessage, which will setargumentsRetainedtoYES.