MonobjcMonobjc Documented Class Library
InitWithArray Method (array)
NamespacesMonobjc.FoundationNSSetInitWithArray(NSArray)

Initializes a newly allocated set with the objects that are contained in a given array.

Original signature is '- (id)initWithArray:(NSArray *)array'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithArray(
	NSArray array
)
Public Overridable Function InitWithArray ( _
	array As NSArray _
) As Id
public:
virtual Id^ InitWithArray(
	NSArray^ array
)
Parameters
array (NSArray)
An array of objects to add to the new set. If the same object appears more than once in array, it is represented only once in the returned set. Each object receives a retain message as it is added to the set.
Return Value
An initialized set with the contents of array. The returned set might be different than the original receiver.
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)