* This subclass of Object handles all the user interface actions.
*
*
* You may freely copy, distribute, and reuse the code in this example.
* NeXT disclaims any warranty of any kind, expressed or implied, as to its
* fitness for any particular use.
*
*/
#import "Controller.h"
#import "Localization.h" // Localization routines
#import "ClockView.h" // Clock display routines
#import <appkit/Matrix.h>
#import <appkit/Cell.h>
#import <appkit/NXBrowser.h>
#import <appkit/NXBrowserCell.h>
#import <appkit/ScrollView.h>
#import <appkit/Text.h>
#import <appkit/Panel.h>
#import <sys/dir.h> //for getdirentries()
#import <libc.h>
#import <string.h>
/* Static Functions to be defined later */
static char **addFile(const char *file, int length, char **list, int count);
static void freeList(char **list);
static BOOL isOk(const char *s);
static int caseInsensitiveCompare(void *arg1, void *arg2);
static char **fileList;
#define MAX_TIME_CHARS 100
#define FILE_NOT_FOUND_MSG LocalString("File %s not found.", NULL, "The message the user receives if the given file is not found. This is normally an internal error")
@implementation Controller
/* Register some meaningful default values for the system, in case the user starts with
* a virgin one. The following defaults are mostly used for strftime().