Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MyObject.m
- // test
- #import "MyObject.h"
- @implementation MyObject : NSObject
- - (void)methodA:(bool)param from:(id)caller
- {
- NSLog(@"*** Call from RubyCocoa > param: %d", param);
- BOOL ret = [caller callback:false];
- NSLog(@"*** callback returned [%d]", ret);
- if (ret) {
- NSLog(@"*** callback returned <TRUE>");
- }
- else {
- NSLog(@"*** callback returned <FALSE>");
- }
- return;
- }
- @end
Add Comment
Please, Sign In to add comment