MonobjcMonobjc Documented Class Library
NSSet Constructor (set, flag)
NamespacesMonobjc.FoundationNSSetNSSet(NSSet, Boolean)

Initializes a newly allocated set and adds to it members of another given set.

Original signature is '- (id)initWithSet:(NSSet *)set copyItems:(BOOL)flag'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSSet(
	NSSet set,
	bool flag
)
Public Sub New ( _
	set As NSSet, _
	flag As Boolean _
)
public:
NSSet(
	NSSet^ set, 
	bool flag
)
Parameters
set (NSSet)
A set containing objects to add to the new set.
flag (Boolean)
If YES, each object in set 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 set.
Return Value
An initialized set that contains the members of set. 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)