AskMe
by Mai Nguyen, NeXT Developer Support Team


Overview

This mini example serves two purposes: 

·€It provides useful hints for new developers in various areas taken from our NextAnswers files. You can browse through topics of interest, and re-use the template provided to send a  bug report by e-mail with the Services menu (Mail Selection). 
	
· It shows how to localize an application.  Please refer to the NeXT Technical Support Note ªDeveloper's Guide To Localizationº for a detailed explanation of the procedures.
		

Program Organization

User Interface
In order to run a foreign version of AskMe (i.e. French or German), you have to select the language with the Preferences Application before launching the app.  You have to launch the application from the Workspace in order for it to load the proper files (language specific nib and string files). Another option when launching from the Shell is to type the command: open AskMe.app.
 If you have not set any language preference yet, English will be the default language used.  In that case, the application can be launched either from the Shell terminal or from the Workspace. If  a language other than the ones being supported is chosen, English will also be the default language used.

Classes in the Application
Controller
Subclass of Object. It is responsible for all the user actions in the program: initialization, browser selection, control of the split view resizing.

ClockView
Subclass of View. It is responsible for the periodical update of the clock time.


Other Files

AskMe.nib
The main nib file, the user-interface of the application.

Info.nib
The panel which comes up when the user clicks in the Info... menu item
(loaded on demand).
		
Help.nib
The panel which comes up when the user clicks in the Help  menu item
(loaded on demand).

flags.tiff
The application icon.

AskMe_main.m,IB.proj,Makefile,AskMe.iconheader
Created by Interface Builder

Makefile.preamble
Specifies the language-specific subdirectories where .nib and .strings files are kept.
Overrides the default setting of the NOMACHO variable to force all the nibs to be put in the Mach-O
 
Makefile.postamble
To make the app a file package.

Clock.psw
Postscript file to handle the drawing of the time.

genstrings
Shell script to automatically generate table strings.
		


Not valid  for 1.0
Valid for 2.0 