MonobjcMonobjc Documented Class Library
NSDictionary Constructor (otherDictionary, flag)
NamespacesMonobjc.FoundationNSDictionaryNSDictionary(NSDictionary, Boolean)

Initializes a newly allocated dictionary using the objects contained in another given dictionary.

Original signature is '- (id)initWithDictionary:(NSDictionary *)otherDictionary copyItems:(BOOL)flag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSDictionary(
	NSDictionary otherDictionary,
	bool flag
)
Public Sub New ( _
	otherDictionary As NSDictionary, _
	flag As Boolean _
)
public:
NSDictionary(
	NSDictionary^ otherDictionary, 
	bool flag
)
Parameters
otherDictionary (NSDictionary)
A dictionary containing the keys and values with which to initialize the new dictionary.
flag (Boolean)
If YES, each object in otherDictionary receives a copyWithZone: message to create a copy of the object—objects must conform to the NSCopying protocol. In a managed memory environment, this is instead of the retain message the object would otherwise receive. The object copy is then added to the returned dictionary.
Return Value
An initialized object—which might be different than the original receiver—containing the keys and values found in otherDictionary.
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)