I'm using NSInvocation
as a choke point in my app to help manage threading and reduce the amount of redundant code. The purpose of this class is to pass arguments from the view controllers to the API project on a background thread and return success/error/ on the main thread. I also have a log callback that logs apiAPI events in the background.
- Am I creating retain loops by passing
self
in any of the blocks?Am I creating retain loops by passing
self
in any of the blocks? - Is this possible without using
retainArguments:
in theNSInvocation
category?Is this possible without using
retainArguments:
in theNSInvocation
category? - Are there any other issues with this implementation?
Are there any other issues with this implementation?
I'm using NSInvocation
as a choke point in my app to help manage threading and reduce the amount of redundant code. The purpose of this class is to pass arguments from the view controllers to the API project on a background thread and return success/error/ on the main thread. I also have a log callback that logs api events in the background.
- Am I creating retain loops by passing
self
in any of the blocks? - Is this possible without using
retainArguments:
in theNSInvocation
category? - Are there any other issues with this implementation?
I'm using NSInvocation
as a choke point in my app to help manage threading and reduce the amount of redundant code. The purpose of this class is to pass arguments from the view controllers to the API project on a background thread and return success/error on the main thread. I also have a log callback that logs API events in the background.
Am I creating retain loops by passing
self
in any of the blocks?Is this possible without using
retainArguments:
in theNSInvocation
category?Are there any other issues with this implementation?