How do I call a static bool method in main.m

Posted by AaronG on Stack Overflow See other posts from Stack Overflow or by AaronG
Published on 2010-03-20T05:03:29Z Indexed on 2010/03/20 5:11 UTC
Read the original article Hit count: 304

Filed under:
|
|
|
|

This is Objective-C, in Xcode for the iPhone.

I have a method in main.m:

int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

//I want to call the method here//

int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}

static BOOL do_it_all () {
//code here//
}

How do I call the do_it_all method from main.m?

© Stack Overflow or respective owner

Related posts about xcode

Related posts about iphone