Hi,
I have the following code:
I get the following warning:
'warning: initialization makes pointer from integer without a cast'.
I think I need to cast an integer into a string, how do I go about it in this example?
Thanks
I have the following code:
Code:
#import "AppController.h"
@implementation AppController
-(IBAction)calculate:(id)sender
{
int sum;
sum = 50 + 25;
NSString *string = (@"The sum of 50 and 25 is %i", sum);
[textField setStringValue:string];
}
@end
I get the following warning:
'warning: initialization makes pointer from integer without a cast'.
I think I need to cast an integer into a string, how do I go about it in this example?
Thanks