iOS Guides | Samples

MonoTouch.Foundation.NSBundle Class

Application bundle support; Introspection services.

See Also: NSBundle

Syntax

[MonoTouch.Foundation.Register("NSBundle", true)]
public class NSBundle : NSObject

Related content

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.Foundation.NSBundle are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Creates an NSBundle from the specified path.

Public Properties

[read-only]
static
_AllBundlesNSBundle[]. An array of all the application's non-framework bundles.
[read-only]
static
AllFrameworksNSBundle[]. An array of all the application's framework bundles.
[read-only]
AppStoreReceiptUrlNSUrl. The file URL for the bundle's receipt.
[read-only]
BuiltinPluginsPathString. The full path to the subdirectory containing plug-ins.
[read-only]
BuiltInPluginsUrlNSUrl. The file URL to the subdirectory containing plug-ins.
[read-only]
BundleIdentifierString. The bundle identifier.
[read-only]
BundlePathString. The full path to the bundle directory.
[read-only]
BundleUrlNSUrl. The full URL to the bundle directory.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DevelopmentLocalizationString. The localization used to create the bundle.
[read-only]
ExecutablePathString. The full path of the executable file.
[read-only]
ExecutableUrlNSUrl. The file URL of the executable file.
[read-only]
InfoDictionaryNSDictionary. A dictionary of information about this bundle.
[read-only]
IsLoadedBoolean. Whether this bundle is currently loaded.
[read-only]
LocalizationsString[]. The localizations contained within this bundle.
[read-only]
static
MainBundleNSBundle. The NSBundle that corresponds to the directory where the current application is located.
[read-only]
PreferredLocalizationsString[]. The actual localizations contained in this bundle.
[read-only]
PrincipalClassClass. This bundle's principal class.
[read-only]
PrivateFrameworksPathString. The full pathname of this bundle's subdirectory that contains private frameworks.
[read-only]
PrivateFrameworksUrlNSUrl. The file URL of this bundle's subdirectory that contains private frameworks.
[read-only]
ResourcePathString. The full pathname of this bundle's subdirectory that contains resources.
[read-only]
ResourceUrlNSUrl. The file URL of this bundle's subdirectory that contains resources.
[read-only]
SharedFrameworksPathString. The full pathname of this bundle's subdirectory that contains shared frameworks.
[read-only]
SharedFrameworksUrlNSUrl. The file URL of this bundle's subdirectory that contains shared frameworks.
[read-only]
SharedSupportPathString. The full pathname of this bundle's subdirectory that contains shared support files.
[read-only]
SharedSupportUrlNSUrl. The file URL of this bundle's subdirectory that contains shared support files.

Public Methods

ClassNamed(String) : Class
Returns the MonoTouch.ObjCRuntime.Class for the specified className.
static
FromClass(Class) : NSBundle
static
FromIdentifier(String) : NSBundle
static
FromPath(String) : NSBundle
static
FromUrl(NSUrl) : NSBundle
static
GetPathsForResources(String, String) : String[]
Returns all the paths for resources of the specified fileExtension residing in the specified subdirectory.
GetPreservationPriority(NSString) : Double
GetUrlForResource(String, String) : NSUrl
GetUrlForResource(String, String, String) : NSUrl
static
GetUrlForResource(String, String, String, NSUrl) : NSUrl
GetUrlForResource(String, String, String, String) : NSUrl
GetUrlsForResourcesWithExtension(String, String) : NSUrl[]
static
GetUrlsForResourcesWithExtension(String, String, NSUrl) : NSUrl[]
GetUrlsForResourcesWithExtension(String, String, String) : NSUrl[]
Load() : Boolean
Dynamically loads the bundle into a running program, if it is not already loaded. Returns success or failure.
LoadNib(String, NSObject, NSDictionary) : NSArray
Loads the specified nib and returns the top-level objects.
LocalizedString(String, String) : String
Retrieves the localized string for the key or, if not available, returns the key itself.
LocalizedString(String, String, String) : String
A localized version of the string at the specified in the specified table.
LocalizedString(String, String, String, String) : String
ObjectForInfoDictionary(String) : NSObject
The value of this bundle's information property list for the specified key.
PathForAuxiliaryExecutable(String) : String
The full pathname for the executable with the specified name located in this bundle.
PathForResource(String, String) : String
The path for a bundle resource .
PathForResource(String, String, String) : String
The path for a bundle resource .
PathForResource(String, String, String, String) : String
The path for a bundle resource .
static
PathForResourceAbsolute(String, String, String) : String
The full pathname for the resource of the specified name and type in the specified subdirectory.
PathsForResources(String) : String[]
PathsForResources(String, String) : String[]
The full pathnames for resources of the specified fileExtension in the specified subdirectory.
PathsForResources(String, String, String) : String[]
SetPreservationPriority(Double, NSSet)
Unload() : Boolean
Unloads the code associated with this bundle. Returns success or failure.
UrlForAuxiliaryExecutable(String) : NSUrl
The file URL for the executable of the specified name stored in this bundle.