Re: "-forwardInvocation:" like NSInvocation creation
Re: "-forwardInvocation:" like NSInvocation creation
- Subject: Re: "-forwardInvocation:" like NSInvocation creation
- From: Philip Mötteli <email@hidden>
- Date: Mon, 29 Mar 2010 20:52:27 +0200
Am 29.03.2010 um 20:36 schrieb Kyle Sluder:
> On Mon, Mar 29, 2010 at 11:15 AM, Philip Mötteli
> <email@hidden> wrote:
>> - someMethodWithArgument:(struct *)anArgument andSomeOtherArgument:(id)anotherArgument
>> {
>> // Here I want to create an NSInvocation, capturing the call of this method. Something like:
>> NSInvocation *anInvocation = [NSInvocation initWithArgframe: (arglist_t)frame selector: _cmd];
>> }
>
> So you're trying to implement continuations?
Well, I don't know "continuations". I would more likely call them "forwarders".
> Could you perhaps
> rearchitect your code to use blocks instead?
I thought about blocks, but then I need to rewrite such a block for every method, where I want to use this functionality. Everytime adapting the method name and the arguments in that block. That is dynamic redundancy.
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden