Thank you, Ken. Yes, your explanation -- that the NSInvocation
retains them as instance variables -- makes more sense than mine.
I submitted Document Feedback that Apple make clear what they mean by
"retain" in this method.
___
Cocoa-dev mailing
On Aug 1, 2009, at 1:42 AM, Jerry Krinock wrote:
So I decided to -retainArguments, and presumed that this meant I was
supposed to release the target and arguments when I was done with
them.
As you've discovered, no, you're not supposed to do that. You have
not retained the target and arg
The document for -[NSInvocation retainArguments] tells me:
"If the receiver hasn’t already done so, retains the target and all
object arguments of the receiver and copies all of its C-string
arguments. ... Newly created NSInvocations don’t retain or copy their
arguments, nor do they retain