Re: Just starting off in obj C
Re: Just starting off in obj C
- Subject: Re: Just starting off in obj C
- From: Paul Russell <email@hidden>
- Date: Fri, 24 Oct 2008 23:10:23 +0100
I'm guessing it should be:
NSLog(@"This is %@", mytest());
You probably got a compiler warning for this line - it's best not to
ignore these.
Paul
On 24 Oct 2008, at 23:03, Michael wrote:
Is there an obvious reason why this is not working?
#import <Foundation/Foundation.h>
NSString *mytest();
int main (int argc, const char * argv[]) {
NSLog(@"This is %@", mytest);
return (0);
}
NSString *mytest()
{
return (@"foobar");
}
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden