hi
you can use alloc/init methods with the NSNumber class. you have to remember to release them though.
it is easier for me though to use the autorelease pool and let the program manage it for me.
so you can can do this:
NSNumber *myNumber = [[NSNumber alloc] initWithInt: 69];
//use myNumber in some way here
[myNumber release]; // make sure you release it when done
but when you do this, you don't have to release it, it will be autoreleased for you.
NSNumber *myNumber = [NSNumber numberWithInt: 69]; // this is a creation and initialization class method for NSNumber class which ads it to the autorelease pool.
// use myNumber in some way here
// forget about it! its auto released
make sure you reread chapter 15, the first few pages talk about this. but if you have any more questions feel free to post .
Greg