Platforms to show: All Mac Windows Linux Cross-Platform

NSBundleMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
An NSBundle object represents a location in the file system that groups code and resources that can be used in a program.
Example
MsgBox NSBundleMBS.mainBundle.bundlePath

NSBundle objects locate program resources, dynamically load and unload executable code, and assist in localization. You build a bundle in Xcode using one of these project types: Application, Framework, plug-ins.
Although bundle structures vary depending on the target platform and the type of bundle you are building, the NSBundle class hides this underlying structure in most (but not all) cases. Many of the methods you use to load resources from a bundle automatically locate the appropriate starting directory and look for resources in known places.

Architectures

Constant Value Description
NSBundleExecutableArchitectureARM64 &h0100000c Specifies the 64-bit ARM architecture.
NSBundleExecutableArchitectureI386 7 Specifies the 32-bit Intel architecture.
Available in Mac OS X v10.5 and later.
NSBundleExecutableArchitecturePPC &h12 Specifies the 32-bit PowerPC architecture.
Available in Mac OS X v10.5 and later.
NSBundleExecutableArchitecturePPC64 &h01000012 Specifies the 64-bit PowerPC architecture.
Available in Mac OS X v10.5 and later.
NSBundleExecutableArchitectureX86_64 &h01000007 Specifies the 64-bit Intel architecture.
Available in Mac OS X v10.5 and later.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 23.3
    • Changed pathForSoundResource and pathForImageResource to be marked macOS only in NSBundleMBS class.
  • Version 21.0

The items on this page are in the following plugins: MBS MacBase Plugin.


NSBoxMBS   -   NSButtonCellMBS


The biggest plugin in space...