Subclassing
Hey all,
Hope you are all doing well. I have a question (coming from a .NET background). I noticed that with the example application they did a whole lot of subclassing for the different image window objects.
I am just trying to find out if this is really necessary? I don't understand why you would have to subclass the MyDocument.nib file just to add the mImage variable and an accessor. I know there were probably more pieces of code in the implementation, but all that seems like it would be just fine placed in the original MyDocument.nib file.
What am I missing? I thought that maybe this was just done to prove the point that you CAN do it, and how to do it when you need to. I would love to receive any information from some Cocoa developers out there. The move from .NET is proving to be pretty difficult.
Thanks in advance for any help or suggestions.
|