0

NSInvocation has retainArguments to retain the arguments. Why is there no releaseArguments? Why will the retained arguments be freed?

Boon
  • 40,656
  • 60
  • 209
  • 315

1 Answers1

2

After -retainArguments is called, the instance of NSInvocation holds a strong reference to each of the arguments. Like any strong reference, the arguments are retained until the instance of NSInvocation is released.

Jeffery Thomas
  • 42,202
  • 8
  • 92
  • 117