Anyway, even if I do not understand, it exists:
#import <Foundation/NSObject.h>
#import <Foundation/NSAutoreleasePool.h>
#import <Foundation/NSValue.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSNumber* number;
number = [NSNumber numberWithInteger:112];
NSLog(@"integer %@", number);
number = [NSNumber numberWithFloat:123.45];
NSLog(@"float %@", number);
[pool drain];
return 0;
}
No comments:
Post a Comment