Initializerswift 6.0.3Foundation
init(orderedSet:range:copyItems:)
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
s10Foundation19NSMutableOrderedSetC07orderedD05range9copyItemsAcA09NSOrderedD0C_AA8_NSRangeVSbtcfc
What are these?1JVI
import Foundation
class NSMutableOrderedSet
************** Mutable Ordered Set ***************
class NSOrderedSet
@frozen struct Bool
A value type whose instances are either true
or false
.
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
convenience init()
convenience init(array: [Any])
convenience init(array set: [Any], copyItems flag: Bool)
convenience init(array set: [Any], range: NSRange, copyItems flag: Bool)
required convenience init(arrayLiteral elements: Any...)
init(capacity numItems: Int)
required convenience init?(coder aDecoder: NSCoder)
convenience init(object: Any)
convenience init(objects elements: Any...)
override init(objects: UnsafePointer<AnyObject>?, count cnt: Int)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(set: Set<AnyHashable>)
convenience init(set: Set<AnyHashable>, copyItems flag: Bool)
override subscript(idx: Int) -> Any { get set }
func add(_ object: Any)
func add(_ objects: UnsafePointer<AnyObject>?, count: Int)
func addObjects(from array: [Any])
override func copy(with zone: NSZone? = nil) -> Any
func exchangeObject(at idx1: Int, withObjectAt idx2: Int)
func filter(using predicate: NSPredicate)
func insert(_ objects: [Any], at indexes: IndexSet)
func insert(_ object: Any, at idx: Int)
func intersect(_ other: NSOrderedSet)
func intersectSet(_ other: Set<AnyHashable>)
func minus(_ other: NSOrderedSet)
func minusSet(_ other: Set<AnyHashable>)
func moveObjects(at indexes: IndexSet, to idx: Int)
func remove(_ val: Any)
func removeAllObjects()
func removeObject(at idx: Int)
func removeObjects(at indexes: IndexSet)
func removeObjects(in range: NSRange)
func removeObjects(in array: [Any])
func replaceObject(at idx: Int, with obj: Any)
func replaceObjects(at indexes: IndexSet, with objects: [Any])
func replaceObjects(in range: NSRange, with objects: UnsafePointer<AnyObject>!, count: Int)
func setObject(_ obj: Any, at idx: Int)
Sets the object at the specified index of the mutable ordered set.
func sort(comparator cmptr: (Any, Any) -> ComparisonResult)
func sort(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)
func sort(using sortDescriptors: [NSSortDescriptor])
func sortRange(_ range: NSRange, options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult)
func union(_ other: NSOrderedSet)
func unionSet(_ other: Set<AnyHashable>)