Hi!
Here's my code:
#import <Foundation/Foundation.h>
void PrintPathInfo() {
const char *path = [@"~" fileSystemRepresentation];
NSLog(@"My home folder is at '%@'", path);
}
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
PrintPathInfo();
[pool drain];
return 0;
}
And here's my problem: Program received signal: “EXC_BAD_ACCESS”.
I really think the problem is my NSLog but I don't know how to solve it.
Could someone help me please? Thanks!