2020-02-01 23:06:01 +01:00

15 lines
372 B
Plaintext

#import <Foundation/Foundation.h>
#import "foo.h"
#include <iostream>
int main(int argc, char **argv)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
Foo *theFoo = [[Foo alloc] init];
theFoo.age = [NSNumber numberWithInt:argc];
NSLog(@"%d\n",[theFoo.age intValue]);
std::cout << [theFoo.age intValue] << std::endl;
[pool release];
return 0;
}