On Mar 2, 2013, at 17:11 , Graham Cox <graham....@bigpond.com> wrote:

> Unless you send -retainArguments to it, in which case it, well, does what it 
> says on the tin.

OK, but it's still a bit more complicated than that. Using the override code 
suggested in the AppKit release notes I linked to, you also have to deal with 
the management of the 'contextInfo' parameter, which is one of those awkward 
ARC cases.

There are likely also some bridging casts needed, since the 
'didSomethingSelector' and 'contextInfo' patterns both gloss over the 
difference between void* and id.

So maybe what I should have said was that NSInvocation needs some hand-holding 
when used with ARC.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to