On 2010 Mar 29, at 11:15, Philip Mötteli 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]; > }
I don't see anything special about your situation. You've got the target (self), selector (_cmd), and arguments in there. You should be able to create an invocation with available methods, for example +[NSInvocation invocationWithMethodSignature:], then add arguments. http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/DistrObjects/Tasks/invocations.html No touching stack frames needed! We're high-level folks here. _______________________________________________ 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