NSBundle

From GNUstepWiki
Revision as of 04:56, 9 April 2007 by Martin (talk | contribs) (Introduction in layman's terms and note GS extensions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

NSBundle is a class in Foundation for the manipulation of bundles. Bundles are specialized directories that collect related resources for an application or framework (or even an ordinary file) and present them to a user as a single, opaque file. Common resources are images, NIB or GORM interface files, localizations, and executable binaries.

NSBundle is mostly used to find the executable code for a given bundle (and vice versa), to choose appropriate localizations, and to locate other resources in a bundle's directory. Currently GNUstep defines two methods in addition to those from OpenStep: bundleForLibrary and pathForLibraryResource. However, these two extensions are experimental and might change.