Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. // MyObject.m
  2. // test
  3. #import "MyObject.h"
  4.  
  5. @implementation MyObject : NSObject
  6. - (void)methodA:(bool)param from:(id)caller
  7. {
  8. NSLog(@"*** Call from RubyCocoa > param: %d", param);
  9.  
  10. BOOL ret = [caller callback:false];
  11. NSLog(@"*** callback returned [%d]", ret);
  12. if (ret) {
  13. NSLog(@"*** callback returned <TRUE>");
  14. }
  15. else {
  16. NSLog(@"*** callback returned <FALSE>");
  17. }
  18. return;
  19. }
  20. @end
Add Comment
Please, Sign In to add comment