Release 1.3 Copyright ©1993-1994 by Don Yacktman. All Rights Reserved.
Application(MiscAppExtensions) |
Declared In: | misckit/MiscAppExtensions.h |
Category Description |
Method Types |
Instance Methods |
appDirectory |
- (const char *)appDirectory |
Returns the directory in which the application's executable resides (the app wrapper). There is no trailing "/" on the
path name, so if you plan to concatenate a file name to the path, don't forget to first append the "/".
See also: -directory (NXBundle class)
|
- (BOOL)didAutolaunch |
Returns wether the application was launched by the user or by some autolaunch mechanism (e.g. Service, Workspace
autolaunch path,...).
|
- (NXAtom)domainName |
Returns the name of the domain the machine is on. See the man page for getdomainname() for more information. This
is identical to the -realDomainName method, but exists for completeness and orthogonality of the API. Future
implementations should take care of the NXHost mechansim and take is domain info into account. Then the hostName
method should change to really return the host name only.
|
- (int)effectiveGroupIDNum |
Returns the results of the getegid() function.
See also:
|
- (int)effectiveUserIDNum |
Returns the results of the geteuid() function.
See also:
|
- (int)groupIDNum |
Returns the results of the getgid() function.
See also:
|
- (BOOL)groupMemberForID:(gid_t)anId |
Returns YES is the user running the application is a member of the group specified by anId. Returns NO otherwise.
See also:
|
- (BOOL)groupMemberForString:(const char *)aString |
Returns YES is the user running the application is a member of the group specified by aString. Returns NO otherwise.
See also:
|
- (unsigned long int)hostID |
Returns the results of the gethostid() function. This value is unique to the hardware.
|
- (BOOL)knowsDefaultValue:(const char *)defName |
Returns YES if the defaults system has a valid value for the specifed defaultName. Use this methdo before reading any
valus. This gives you the chance the use app internal defaults.
|
- (NXAtom)realDomainName |
Returns the name of the domain the machine is on. See the man page for getdomainname() for more information.
|
- (NXAtom)realHostName |
Returns the host name as returned by the gethostname() function.
|
- (NXAtom)realNameFor:(NXAtom)userId |
- (NXAtom)userHomeDirectory |
Returns the home directory of the user who ran the application as found by NXHomeDirectory().
|
- (int)userIDNum |
Returns the results of the getuid() function.
See also:
|
- (NXAtom)userLoginName |
Returns the results of the NXUserName() function, which returns the login name of the user who ran the application.
See also:
|
- (NXAtom)userRealName |
Returns the full name of the user who ran the application. |