Another question of mine about optimizing Objective C programs inspired the following: does anyone have a short example using SEL and IMP when theMethod has two (or more) integers for input?
Another question of mine about optimizing Objective C programs inspired the following: does anyone
Share
Here’s a good tutorial for getting the current IMP (with an overview of IMPs). A very basic example of IMPs and SELs is:
You could then invoke the IMP like so:
There’s usually no reason to need IMPs unless you’re doing serious voodoo–is there something specific you want to do?