Annotation of objc/NXBundle.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.0 (the 'License').  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License."
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: /*     NXBundle.h
                     25:        Copyright 1990, 1991, NeXT, Inc.
                     26:        Utilities for dynamic loading and internationalization.
                     27:        IPC, November 1990
                     28: */
                     29: 
                     30: #ifndef _OBJC_NXBUNDLE_H_
                     31: #define _OBJC_NXBUNDLE_H_
                     32: 
                     33: #import "Object.h"
                     34: 
                     35: @interface NXBundle: Object {
                     36: @private
                     37:     char       *_directory;
                     38:     Class      _principalClass;
                     39:     BOOL       _codeLoaded;
                     40:     BOOL       _reserved1, _reserved2, _reserved3;
                     41:     int                _bundleVersion;
                     42: }
                     43: 
                     44: - initForDirectory:(const char *)path;
                     45: + mainBundle;
                     46: + bundleForClass:class;
                     47: - (const char *)directory;
                     48: - classNamed:(const char *)className;
                     49: - principalClass;
                     50: - setVersion:(int)version;
                     51: - (int)version;
                     52: - free;
                     53: + (BOOL)getPath:(char *)path forResource:(const char *)name
                     54:          ofType:(const char *)ext inDirectory: (const char *)bundlePath
                     55:     withVersion: (int)version;
                     56: - (BOOL)getPath:(char *)path forResource:(const char *)name ofType:(const char *)ext;
                     57: + setSystemLanguages:(const char * const *)languages;
                     58: @end
                     59: 
                     60: #define NXLocalString(key, value, comment) \
                     61:     NXLoadLocalStringFromTableInBundle(NULL, nil, key, value)
                     62: #define NXLocalStringFromTable(table, key, value, comment) \
                     63:     NXLoadLocalStringFromTableInBundle(table, nil, key, value)
                     64: #define NXLocalStringFromTableInBundle(table, bundle, key, value, comment) \
                     65:     NXLoadLocalStringFromTableInBundle(table, bundle, key, value)
                     66: 
                     67: #define NXLocalizedString(key, value, comment) \
                     68:     NXLoadLocalizedStringFromTableInBundle(NULL, nil, key, value)
                     69: #define NXLocalizedStringFromTable(table, key, value, comment) \
                     70:     NXLoadLocalizedStringFromTableInBundle(table, nil, key, value)
                     71: #define NXLocalizedStringFromTableInBundle(table, bundle, key, value, comment) \
                     72:     NXLoadLocalizedStringFromTableInBundle(table, bundle, key, value)
                     73: 
                     74: extern const char *NXLoadLocalStringFromTableInBundle(const char *table, NXBundle *bundle, const char *key, const char *value);
                     75: extern const char *NXLoadLocalizedStringFromTableInBundle(const char *table, NXBundle *bundle, const char *key, const char *value);
                     76: 
                     77: #endif /* _OBJC_NXBUNDLE_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.