objective-c test

C code posted by stackoverflow
created at 02 Nov 17:23, updated at 02 Nov 17:26

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
#import "MyObject.h"

@implementation MyObject

- (NSString *) testMethod: (NSNumber *) theNumber withInt: (NSInteger) theInteger {
  if( [theNumber integerValue] == theInteger) {
    return @"same";
  } else {
    return @"not the same";
  }
}

@end
262 Bytes in 2 ms with coderay