Discussion The key to allowing your application to be NetBoot Server-friendly is to keep in mind that NetBoot clients will share System and Application folders loaded from the server. If youve written your application to properly use the Preferences folder and not assume that the application is launched from a writeable volume, your application will probably work fine. Allow launching from a locked volume To use disk space effectively, applications may be stored on a shared locked volume. Your application should be able to launch and run from a locked volume and store the users personal information, such as preferences and data, on a different volume. At the minimum, check for and deal gracefully with the situation when the application file is locked. Allow multiple users to access the application simultaneously In order to conserve disk space on the server, applications may be stored on a common/shared volume on the server. You can check whether your application can be simultaneously launched by multiple users by installing it on an standard AppleShare server and launching your application across the network from two client computers. Store all application preferences within System Folder:Preferences Because a single station will be used by different people, each users preferences will be retained and restored when she logs back in, either at the same machine or at a new one, via the Macintosh Manager software. In order for your applications user preferences to be retained, be sure to save them in the Preferences folder within the System Folder. Saving preferences here makes it much easier to administer the server, and allows the preferences to follow the user regardless of which Macintosh on the network she uses. Allow users to specify the location of personal data Since multiple users will be using the same application, it is important for applications allow the user to specify the location of their personalized documents and databases. Dont hardcode your application to store the user data in the same location as the application. This is particularly important for E-mail applications. Avoid storing the serial number in the application Again, because multiple users may be using the same application, dont store the serial number in the application. If serialization of your application is necessary or desired, store the serial number within the Preferences folder so that different users can have different serial numbers while still using the same master application file. Dont assume that FindFolder( kSystemDisk, etc.) will return -1 for the refNum. Always use both the vRefNum and dirID returned by FindFolder to locate important folders. Put application-specific files for the System Folder in the Application Support folder when you can. If your application has files that get stored in the System Folder, like dictionaries, and they dont need to be stored in the Extensions folder, they should be placed in the Application Support folder. Shared Libraries dont need to be in the Extensions folder; they can be in the folder with the application itself. Its not necessary to copy a shared library used exclusively by one application into the Extensions folder; just leave it in the folder with the application. |