Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Objective-C)  »  NSInvocation on super...
Page 1 of 1    

NSInvocation on super...

Author Message
ProbablyCorey...
Posted: Fri Jul 10, 2009 8:33 pm
Guest
I'm trying to invoke a method at runtime, but I want to start the
method search in object's super. I could use objc_msgSendSuper, but
the arguments I send are only known at runtime so that's out.

Is there a way to set the target of the NSInvocation to invoke the
objects super?
 
Greg Parker...
Posted: Tue Jul 14, 2009 1:13 am
Guest
ProbablyCorey <probablycorey at (no spam) gmail.com> writes:
Quote:
I'm trying to invoke a method at runtime, but I want to start the
method search in object's super. I could use objc_msgSendSuper, but
the arguments I send are only known at runtime so that's out.

Is there a way to set the target of the NSInvocation to invoke the
objects super?

No, NSInvocation can't do that. Your best bet is to use libffi to build
a call to objc_msgSendSuper().


--
Greg Parker gparker at (no spam) apple.com Runtime Wrangler
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Nov 26, 2009 7:46 am