NSMenuItem -setTarget: Does it retain the target, or should one explicitly retain it?
I've seen conflicting docs on this. I know of retainArguments in NSInvocation, but I'm not sure this applies to NSMenuItem as it doesn't inherit from NSInvocation.
NSMenuItem -setTarget: Does it retain the target, or should one explicitly retain it?
I've seen conflicting docs on this. I know of retainArguments in NSInvocation, but I'm not sure this applies to NSMenuItem as it doesn't inherit from NSInvocation.
I don't believe it does. Usually target-action methods and delegate properties don't retain what they're set to, as they don't “own” their target.