I'm trying to use "CodeRunner" as Objective-C playground but I'm trying to add a new method to the class:
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
}
}
-(void)printSomeThing {
NSLog("printing someThing")
}
I'm getting this error:
Untitled.m:10:1: error: missing context for method declaration
-(void)printSomeThing {
^
1 error generated.
Any of you knows how fix this error?
I'll really appreciate your help.
This is what I was looking for: