ftp.nice.ch/pub/next/tools/gtools/GTools.API.tar.gz#/GTools.API/Documentation/Libraries/GKappkit/GKModule.rtf

This is GKModule.rtf in view mode; [Download] [Up]

Release 1.0  Copyright ©1994 by BITart, Regensburg.  All Rights Reserved.  Author: Gerd Knops.




GKModule






Inherits From:	Object

Declared In:	GKModule.h





Class Description

There is a instance of GKModule for each module in the application, as well as one for the application itself. It is responsible for integrating the module into the UI, and helps you with localization, help support and other things.  





Instance Variables

char *{
b1 name}; 
id {
b1 bundle}; 
id {
b1 infoStrings}; 
id {
b1 localStrings}; 
id {
b1 menuItemList}; 
id {
b1 image}; 
id {
b1 infoPanel}; 
char **{
b1 manualPaths}; 
BOOL {
b1 testedForImage}; 
BOOL {
b1 isActive}; 

pardtx6140tx9660tx10180fs16fi-4040li6140fc0cf0 
name	The Modules name, that is the name of the bundle without extension, or, in case of the appModule, the name off the application. 

bundle	The bundle for this module. 

infoStrings	The string table, that holds the module relevant data. 

localStrings	The bundles basic localization string table. 

menuItemList	A list containing menuCells that belong to this module. 

image	The bitimage for this module. 

infoPanel	The modules info panel, if any. 

manualPaths	A list of items and help paths for those. 

testedForImage	An internal variable. 

isActive	An internal variable. 




Method Types

fs16 
Factory methods 	- initAppModule
	- initForDirectory:

Request methods 	- name
	- bundle
	- localStrings
	- infoStrings
	- image
	- loadImage:

Methods called from outside 	- loadNib:owner:
	- loadNib:owner:fromZone:
	- setupMenuItem:target:selector:

pardtx9660tx10180fi-520li6640fc0cf0 


li1360fc0cf0 
Instance Methods

initAppModule
- initAppModule 

This method initializes a GKModule instance for the Application itself. 

fi-380li2480fc0cf0 


initForDirectory:
- initForDirectory:(const char *)thePath

If {
i1 thePath} exists, and no module named like the module pointed to by {
i1 thePath} already exists, a module is initialized for {
i1 thePath}. Otherwise {
b1 nil} is returned. 

fi-380li2480fc0cf0 


name
- (const char *)name 

This method returns the {
i1 name} of this module. 

fi-380li2480fc0cf0 


bundle
- bundle 

This method returns the {
i1 bundle} for this module. 

fi-380li2480fc0cf0 


localStrings
- localStrings 

This method returns the GKLocalizedStringTable instance used for the localization of this module. It holds all the information from the <name>.strings file of the appropiate *.lproj folder. 

fi-380li2480fc0cf0 


infoStrings
- infoStrings 

This method returns the NXStringTable instance that holds the information for the initialization of this module. The instance holds all the information from the md file. 

fi-380li2480fc0cf0 


image
- image 

This method returns the {
i1 image} initialized from <name>.tiff. 

fi-380li2480fc0cf0 


loadImage:
- loadImage:(const char *)theName

If an {
i1 image} named {
i1 theName}.tiff could be found in the modules directory, this method returns a NXImage instance holding this {
i1 image}. 

fi-380li2480fc0cf0 


loadNib:owner:
- loadNib:(const char *)nibFileName owner:owner

Calls loadNib:{
i1 owner}:fromZone: with the owners zone as argument for zone. 

fi-380li2480fc0cf0 


loadNib:owner:fromZone:
- loadNib:(const char *)nibFileName
owner:owner
fromZone:(NXZone *)zone

This method loads the nib file named {
i1 {
i1 nibFileName}}.nib from the modules {
i1 bundle}. If the nib file couldn't be found or loaded, this method returns {
b1 nil}; {
b1 self} otherwise. 

fi-380li2480fc0cf0 


setupMenuItem:target:selector:
- setupMenuItem:(int)number
target:newTarget
selector:(SEL)newSelector

You use this method to set up the target and selector to the menu entries defined through your .md file. this method then has to be called during initializing of your modules classes. Returns {
b1 self}. 

fi-380li2480fc0cf0 




Generated by DocMaker on Wed May  4 00:51:05 1994
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.