Objective-Cのテスト

Objective-Cのテスト

Objective-Cのテスト

  • タグ:
  • タグはありません
#import <stdio.h>
#import <objc/Object.h>

@interface Test : Object
- (void)Write;
@end

@implementation Test
- (void)Write {
	printf("I am the bone of my sword.\n");
}
@end

int main() {
	id obj;
	SEL method;

	obj = [Test new];
	method = @selector(Write);
	[obj perform:method];

	return 0;
}