NSBundle

From GNUstepWiki

(Difference between revisions)
Revision as of 04:56, 9 April 2007
Martin (Talk | contribs)
Introduction in layman's terms and note GS extensions
Next diff →

Revision as of 04:56, 9 April 2007

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.