MonobjcMonobjc Documented Class Library
SBObject Constructor (code, properties, data)
NamespacesMonobjc.ScriptingBridgeSBObjectSBObject(UInt32, NSDictionary, Id)

Returns an instance of an SBObject subclass initialized with the specified properties and data and added to the designated element array.

Original signature is '- (id)initWithElementCode:(DescType)code properties:(NSDictionary *)properties data:(id)data'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public SBObject(
	uint code,
	NSDictionary properties,
	Id data
)
Public Sub New ( _
	code As UInteger, _
	properties As NSDictionary, _
	data As Id _
)
public:
SBObject(
	unsigned int code, 
	NSDictionary^ properties, 
	Id^ data
)
Parameters
code (UInt32)
A four-character code used to identify an element in the target application’s scripting interface. See Apple Event Manager Reference for details.
properties (NSDictionary)
A dictionary with keys specifying the names of properties (that is, attributes or to-one relationships) and the values for those properties. Pass nil if you are initializing the object by data only.
data (Id)
An object containing data for the new SBObject object. The data varies according to the type of scripting object to be created. Pass nil if you initializing the object by properties only.
Return Value
An SBObject object or nil if the object could not be initialized.
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.ScriptingBridge (Module: Monobjc.ScriptingBridge)