Questions tagged [nsinvocation]

An NSInvocation object contains all the elements of an Objective-C message: a target, a selector, arguments, and the return value. Each of these elements can be set directly, and the return value is set automatically when the NSInvocation object is dispatched.

Resource

154 questions
0
votes
2 answers

Assistance Converting NSInvocation Code to ARC Compatible (Already Objective-C)

I found some really great code from Matt Gallagher for use with making Undo work with NSInvocation. Though now Management wants us to use ARC for all of our code and we are now converting all of our code to ARC. This Last Piece is all that is left.…
scooter133
  • 1,297
  • 1
  • 15
  • 29
-1
votes
1 answer

NSProxy forwardInvocation: Return an new NSProxy instance cause memory leak

I try to use NSProxy to wrap object and make an proxy instance in (forwardInvocation:) as invocation' retValue, but all proxyon instance from can't be release in ARC. I've been troubled for a long time. demo at…
-1
votes
2 answers

Firing methods in sequence

I have an array of methods I have to fire in sequence. Every method returns a BOOL. Something like - (BOOL) oneMethod; The method names are on an array like #define TESTS @[ \ @"averageNotOK:", \ @"numbersOverRange:", \ …
Duck
  • 34,902
  • 47
  • 248
  • 470
-1
votes
1 answer

Is it possible to set method from another class as selector property for NSInvocation object?

I have a method in ClassA which is called Selector1, In ClassB I want to create a NSInvocation object and set the Selector1 as the object's selector. Is this possible? I don't know the proper way to set up this. The code I am trying to use in ClassB…
newguy
  • 5,668
  • 12
  • 55
  • 95
1 2 3
10
11