You are currently viewing the BOOK: Beginning Mac OS X Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
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.