So in developing my app I being working on separate sections of it as separate scripts
and packaging some of them into libraries.
I have already built an Xcode project with one of my ASObjC scripts/script libraries
and I want to now use some of these new scripts/script libraries and further develop the app.
I’m wondering about using multiple ASObjC scripts in the Xcode projects
as I believe I’ve seen this in other projects.
Few questions
- do I still need to add the regular AppDelegate methods to the scripts.
- AppWillFinishLaunching etc?
- A) would I want to make the added scripts Delegates of the Main Script?
B) if I do make them Delegates do I really need to have the -App Will Finish Launch stuff - am I not approaching this correctly and should I be doing the following:
Other Design Approach:
-
Should I be considering the AppDelegate Applescript as the front end connection between
Cocoa and the rest of my applescript? IE it is my controller and view controller between the AppleScript world and Cocoa world? -
Should I design the AppDelegate so that has the properties and functions for VIEW CONTROLLING
-
and also the AppDelegate would be my DATA/MODEL CONTROLLER and utilize the other scripts as libraries?
-
Take advantage of as many Xcode Controllers that I can to reduce the code in the AppDelegate?
If I can use multiple AppDelegate should I use the above MVC design approach
and have each AppDelegate Script handle separate “sections” of my code?
IE
- one for handling Data importing, managing, moving
- one for processing, manipulating, searching
- one for receiving external data
- one for viewing
thanks