Am 29.03.2010 um 20:36 schrieb Kyle Sluder:

> On Mon, Mar 29, 2010 at 11:15 AM, Philip Mötteli
> <philip.moett...@tele2.ch> 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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to