ftp.nice.ch/pub/next/developer/resources/classes/WhereAmI.s.tar.gz#/WhereAmI/WhereAmI.rtf

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

Copyright © 1992 by Scott Hess.

pardbfs36li1100 WhereAmI

CATEGORY OF	Application

INHERITS FROM	Application : Responder : Object

DECLARED IN	"WhereAmI.h"



CATEGORY DESCRIPTION

WhereAmI provides addition methods for Applications concerned with finding files which are part of a .app wrapper.

WhereAmI is free.  Use it and abuse it as you see fit.

Scott Hess
12901 Upton Avenue South, #326
Burnsville, MN  55337
(612) 895-1208
scott@gac.edu
shess@ssesco.com



METHOD TYPES

Finding files	- whereAmI
	- whereIs:path:
	- whoAmI



INSTANCE METHODS


whereAmI
-(NXAtom)whereAmI

Attempts to find the directory which the program's executable resides in.  Returns a fully qualified pathname if successful.  Returns NULL if unable to find the executable's directory.


whereIs:path:
-(const char *)whereIs:(const char *)file path:(char *)result

Attempts to find the a file within the executable's directory.  If a path to the file cannot be generated, NULL is returned and result is set to "".  If a path to the file can be generated, but the file cannot be found, NULL is returned and result is set to the path to the file.  Lastly, if the path can be generated, and the file exists, result is returned filled with that path.


whoAmI
-(NXAtom)whoAmI

Attempts to find the path to the program's executable.  Returns a fully qualified pathname if successful.  Returns NULL if unable to find the executable.

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