I’ve got a few fundamental conceptual things I’m trying to wrap my head around and I’m hoping that someone can clear a few things up for me.
First off, what exactly is the appdelegate file? I’m thinking of it as the “main” controlling file. The one where handlers like “awake from nib” will be called. It’s also the “controller” for my gui elements. Does that sound close?
Secondly, if for organizational purposes, I want outlets and actions from a file other than the appdelegate, how do I do that? I know I saw an example of it in one of the tutorials I’ve worked through, but they’ve all started to blur and I’ve lost track of it.
Thirdly, related to the above, how are people out there organizing large applications. My original app was a mess, and I went through a “clean up phase” where I broke it into multiple files and incorporated script objects, to give it more of an OOP feel. I think that I was only partially successful, so I’m wondering how other people are handling big applications. I could see where it would be possible to go nuts with script objects (e.g., each GUI element a script object) or perhaps organize files by windows - a separate applescript file for each?
Fourthly (is that a word :-)), when I add a new script file, it is automatically made a child of NSObject. What happens if I delete this line. Is the file then an ordinary applescript file with none of the ASObjC capabilities and gotchas? Will it function within my project?
Thanks in advance for any help.