In chapter 15 in Table 15.1 there is a 3 column list. The question I have is about the first two. The first column lists creation and initialization class methods, and the second column lists initialization instance methods (you have to use alloc with these, as you would expect).
So, what's considered the best way? From looking at this, I'm not sure why anyone would ever choose to use alloc + an initialization instance method when you could easily just use the creation and initialization class method and do it in one step. You can't change the value of a previously created NSNumber object. Therefore using an instance initialization method (e.g. initWithChar) on an NSNumber object with a value is essentially useless. In other words, you can't use it 'after the fact' and change the value.
The book shows all of these possible ways to do this but didn't offer much on the plusses or minuses of either approach. Does anyone have any opinions on this? Thanks for any info.