New topic: 

Looking for a performSelector equivalent

<http://forums.realsoftware.com/viewtopic.php?t=47514>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        bobbyski          Post subject: Looking for a performSelector 
equivalentPosted: Fri Apr 05, 2013 9:30 am                         
Joined: Thu Feb 23, 2006 5:28 pm
Posts: 5
Location: Cary, NC                I am implementing an api in REALBasic where I 
call a method for each item in an array. The method to call varies, so a class 
interface is not suitable for a class interface, though the argument signature 
is the same for each one.

In objective-C I would use performSelector:, in C i would use a function 
pointer as a callback. Since RB provides the addressOf call to get a pointer to 
pass to a C function to call back to a RB method, I assume that you can do the 
same thing and call the method from another realbasic method, but i can't find 
any examples of the calling syntax. Can some one point me to an example of how 
to do this?

Thanks in advance!      
_________________
Thanks, 
Bobby  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to