Hey, Thanks for the reply.
I am following the CS193p course on iPhone programming and the guy uses a calculator for much of his examples.
The program uses a View with buttons which are handled by the View controller in which a piece of code runs if any of the "operator" buttons are pressed. (The second method above).
The View controller passes the job of doing the operation to a "Model" which is where my code is
As an exercise I was changing the program to look up the button number tag in a dictionary before using the returned operator in the routine where the calculation is done.
There is a full working example of the calculator here
https://github.com/i4-apps/Calculator provided by a very helpful chap called Dave Barton.
My question is almost answered by your post. I think you are right I do want to have dictionary as a member of my model class but I do not understand enough about when to use
a) static data in classes
b) properties and synthesize
Yes I do have to use one of these but I have been searching for a template where I can a) do the thing and b) understand why I am doing it this way.
Thanks again for answering