init(coder:)
required convenience init?(coder aDecoder: NSCoder)
required convenience init?(coder aDecoder: NSCoder)
import Foundation
class NSOrderedSet
class NSCoder
The NSCoder
abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format. This capability provides the basis for archiving (where objects and data items are stored on disk) and distribution (where objects and data items are copied between different processes or threads). The concrete subclasses provided by Foundation for these purposes are NSKeyedArchiver
and NSKeyedUnarchiver
. Concrete subclasses of NSCoder
are referred to in general as coder classes, and instances of these classes as coder objects (or simply coders). A coder object that can only encode values is referred to as an encoder object, and one that can only decode values as a decoder object.
override 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...)
convenience init(object: Any)
convenience init(objects elements: Any...)
init(objects: UnsafePointer<AnyObject>?, count cnt: Int)
convenience init(orderedSet set: NSOrderedSet)
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
convenience init(set: Set<AnyHashable>)
convenience init(set: Set<AnyHashable>, copyItems flag: Bool)
static var supportsSecureCoding: Bool { get }
var array: [Any] { get }
var count: Int { get }
var customMirror: Mirror { get }
override var description: String { get }
var firstObject: Any? { get }
var lastObject: Any? { get }
var reversed: NSOrderedSet { get }
var set: Set<AnyHashable> { get }
subscript(idx: Int) -> Any { get }
func contains(_ object: Any) -> Bool
override func copy() -> Any
func copy(with zone: NSZone? = nil) -> Any
func description(withLocale locale: Locale?) -> String
func description(withLocale locale: Locale?, indent level: Int) -> String
func encode(with aCoder: NSCoder)
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
func filtered(using predicate: NSPredicate) -> NSOrderedSet
func index(_ opts: NSEnumerationOptions = [], ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(of object: Any) -> Int
func index(of object: Any, inSortedRange range: NSRange, options opts: NSBinarySearchingOptions = [], usingComparator cmp: (Any, Any) -> ComparisonResult) -> Int
func index(ofObjectAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func index(ofObjectPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> Int
func indexes(ofObjectsAt s: IndexSet, options opts: NSEnumerationOptions = [], passingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func indexes(options opts: NSEnumerationOptions = [], ofObjectsPassingTest predicate: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Bool) -> IndexSet
func intersects(_ other: NSOrderedSet) -> Bool
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
override func isEqual(_ object: Any?) -> Bool
func isEqual(to other: NSOrderedSet) -> Bool
func isSubset(of other: NSOrderedSet) -> Bool
func isSubset(of set: Set<AnyHashable>) -> Bool
func makeIterator() -> NSOrderedSet.Iterator
Return a generator over the elements of this sequence.
override func mutableCopy() -> Any
func mutableCopy(with zone: NSZone? = nil) -> Any
func object(at idx: Int) -> Any
func objectEnumerator() -> NSEnumerator
func objects(at indexes: IndexSet) -> [Any]
Returns an array with the objects at the specified indexes in the ordered set.
func reverseObjectEnumerator() -> NSEnumerator
func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(options opts: NSSortOptions = [], usingComparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
typealias Iterator = NSEnumerator.Iterator
required convenience init?(coder aDecoder: NSCoder)