Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSBundleMBS class.

Previous items

NSBundleMBS.sharedSupportFolder as folderitem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the full pathname of the receiver's subdirectory containing shared support files.

This method returns the appropriate path for modern application and framework bundles. This method may not return a path for non-standard bundle formats or for some older bundle formats.

NSBundleMBS.sharedSupportPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the full pathname of the receiver's subdirectory containing shared support files.

This method returns the appropriate path for modern application and framework bundles. This method may not return a path for non-standard bundle formats or for some older bundle formats.

NSBundleMBS.unload as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 9.8 ✅ Yes ❌ No ❌ No ✅ Yes All
Unloads the code associated with the receiver.

Returns true if the bundle was successfully unloaded or was not already loaded; otherwise, false if the bundle could not be unloaded.

This method attempts to unload a bundle's executable code using the underlying dynamic loader (typically dyld). You may use this method to unload plug-in and framework bundles when you no longer need the code they contain. You should use this method to unload bundles that were loaded using the methods of the NSBundle class only. Do not use this method to unload bundles that were originally loaded using the bundle-manipulation functions in Core Foundation.
It is the responsibility of the caller to ensure that no in-memory objects or data structures refer to the code being unloaded. For example, if you have an object whose class is defined in a bundle, you must release that object prior to unloading the bundle. Similarly, your code should not attempt to access any symbols defined in an unloaded bundle.

Prior to Mac OS X version 10.5, code could not be unloaded once loaded, and this method would always return false. In Mac OS X version 10.5 and later, you can unload a bundle's executable code using this method.

Available in Mac OS X v10.5 and later.

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...