Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > How to do dynam...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 964 of 1009
Post > Topic >>

How to do dynamic function calls

by SeligArkin <SeligArkin@[EMAIL PROTECTED] > Mar 10, 2008 at 01:27 PM

Ok, I want to do something rather complex. This is for a bot that has
'plugins' (Bundles).

What I want to do is make a method/message/function/what-ever-you-call-
it called 'CallHook'

Which will take two manditory arguments:
NSString*:plugin and NSString*hook

Then everything after it is passed on to [plugin evthook]

How is this accheviable, I cant seem to find a way.

The niche is I want it to work for any function, any arguments. ... is
no go because I want it to be asif you are calling that plugin. The
main reason I want it this way is simplicity, so I can make it so if
'nil'  is  provided for the plugin, it'll call all the plugs. Thanks
for any help.

~ Selig Arkin
 




 3 Posts in Topic:
How to do dynamic function calls
SeligArkin <SeligArkin  2008-03-10 13:27:19 
Re: How to do dynamic function calls
Mike Burrell <mburrel@  2008-03-13 13:22:41 
Re: How to do dynamic function calls
SeligArkin <SeligArkin  2008-03-14 09:11:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:16:58 CDT 2008.