* 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
* fit for any particular use.
*
* Written by Mai Nguyen, NeXT Developer Support
*
*/
#import "Controller.h"
#import <dbkit/dbkit.h>
#import <libc.h>
/* Define localized strings */
#define INSTALL_MODEL NXLocalizedString("Please install OracleDemo.dbmodel into your ~/Library/Databases directory and restart.", NULL, "Notify user that SybaseDemo.dbmodel must be installed in his local Databases directory.")
@implementation Controller
/* Extract the actual database and recordlist from the DBModule UI Object
*/
-appDidInit:sender
{
/* Notify the user if the database can't be found */
if (![DBDatabase findDatabaseNamed:"OracleDemo" connect:YES]) {