(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSBundle 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSObject 

Declared In:	foundation/NSBundle.h 

Initializing an NSBundle 

- (id)initWithPath:(NSString *)path	Initializes a newly allocated NSBundle object to make it the NSBundle for the path directory.

Getting an NSBundle 

+ (NSBundle *)bundleForClass:(Class)classObject	Returns the NSBundle object that dynamically loaded classObject, or the main bundle object if classObject wasn't dynamically loaded.
+ (NSBundle *)bundleWithPath:(NSString *)path	Returns an NSBundle object that's initialized for the path directory.
+ (NSBundle *)mainBundle	Returns the NSBundle object that corresponds to the directory where the application executable is located.

Getting a Bundled Class 

- (Class)classNamed:(NSString *)className	Returns the class object for the className class, or nil if className isn't one of the classes associated with the receiver.
- (Class)principalClass	Returns the class object for a class that's dynamically loaded by the NSBundle, or nil if the NSBundle can't dynamically load any classes.

Finding a Resource 

+ (NSString *)pathForResource:(NSString *)name	Returns the path for the resource identified by name,
ofType:(NSString *)extension		having the specified filename extension,
inDirectory:(NSString *)directory		residing in directory,
withVersion:(int)version		and having version number version.
- (NSString *)pathForResource:(NSString *)name	Returns the path for the resource  identified by name
ofType:(NSString *)extension		having the specified filename extension.

Getting the Bundle Directory 

- (NSString *)bundlePath	Returns a string containing the full pathname of the receiver's bundle directory.

Stripping Symbols

+ (void)stripAfterLoading:(BOOL)flag	Sets whether symbols are stripped when modules are loaded.  The default is YES.

Managing Localized Resources

- (NSString *)localizedStringForKey:(NSString *)key
value:(NSString *)defaultValue	Returns a localized version of the string designated by 
table:(NSString *)tableName		key. tableName specifies the string table to search; if 
		tableName is NULL, the file Localizable.strings is  used. defaultValue specifies the value to return if the key or table can't be found (or if key is NULL).

Setting the Version 

- (unsigned int)bundleVersion	Returns the version last set by the setBundleVersion: method, or 0 if no version has been set.
- (void)setBundleVersion:(unsigned int)version	Sets the version that the NSBundle will use when searching ª.lprojº subdirectories for resource files.