MonobjcMonobjc Documented Class Library
BundleForClass Method (aClass)

Returns the NSBundle object with which the specified class is associated.

Original signature is '+ (NSBundle *)bundleForClass:(Class)aClass'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSBundle BundleForClass(
	Class aClass
Public Shared Function BundleForClass ( _
	aClass As Class _
) As NSBundle
static NSBundle^ BundleForClass(
	Class^ aClass
aClass (Class)
A class.
Return Value
The NSBundle object that dynamically loaded aClass (a loadable bundle), the NSBundle object for the framework in which aClass is defined, or the main bundle object if aClass was not dynamically loaded or is not defined in a framework.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)