Re: Making an NSMethodInvocation from the current method
Re: Making an NSMethodInvocation from the current method
- Subject: Re: Making an NSMethodInvocation from the current method
- From: Graham Cox <email@hidden>
- Date: Sun, 22 Aug 2010 18:42:28 +0200
On 22/08/2010, at 6:31 PM, Graham Cox wrote:
> the hidden parameter -cmd to any method is its own selector
That should be _cmd (slip of the shift key).
So you could create an NSInvocation for the current method using [NSInvocation invocationWithMethodSignature:[self methodSignatureForSelector:_cmd]];
--Graham
_______________________________________________
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