One Logo Pool Ball
Foundation · IOS API REFERENCE

NSOrderedSet

class · iOS 5.0+ · SDK 27.1

class NSOrderedSet

Members (45)

init

init

TypeScript
static initObjectsCount(objects: SDKHandle, cnt: number): NSOrderedSet
Swift declaration
convenience init(objects: UnsafePointer<AnyObject>, count cnt: Int)
method

addObserver

TypeScript
addObserver(observer: _ObjectiveC_NSObject, keyPath: string, options?: NSKeyValueObservingOptions, context?: (SDKHandle) | null): void
Swift declaration
func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options: NSKeyValueObservingOptions = [], context: UnsafeMutableRawPointer?)
method

contains

TypeScript
contains(object: unknown): boolean
Swift declaration
func contains(_ object: Any) -> Bool
method

description

TypeScript
descriptionWithLocale(locale?: (unknown) | null): string
Swift declaration
func description(withLocale locale: Any?) -> String
method

description

TypeScript
descriptionWithLocaleIndent(locale: (unknown) | null, level: number): string
Swift declaration
func description(withLocale locale: Any?, indent level: Int) -> String
method

enumerateObjects

TypeScript
enumerateObjectsAtOptionsUsing(s: IndexSet, opts: NSEnumerationOptions, block: ((arg0: unknown, arg1: number, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateObjects(at s: IndexSet, options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method

enumerateObjects

TypeScript
enumerateObjects(block: ((arg0: unknown, arg1: number, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateObjects(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method

enumerateObjects

TypeScript
enumerateObjectsOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: unknown, arg1: number, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 5.0+

filtered

TypeScript
filtered(p: NSPredicate): NSOrderedSet
Swift declaration
func filtered(using p: NSPredicate) -> NSOrderedSet
method · iOS 5.0+

index

TypeScript
index(object: unknown): number
Swift declaration
func index(of object: Any) -> Int
init · iOS 5.0+

init

TypeScript
static init(): NSOrderedSet
Swift declaration
init()
init

init

TypeScript
static initArray(array: Array<unknown>): NSOrderedSet
Swift declaration
convenience init(array: [Any])
init

init

TypeScript
static initArrayCopyItems(set: Array<unknown>, flag: boolean): NSOrderedSet
Swift declaration
convenience init(array set: [Any], copyItems flag: Bool)
init

init

TypeScript
static initArrayRangeCopyItems(set: Array<unknown>, range: SDKHandle, flag: boolean): NSOrderedSet
Swift declaration
convenience init(array set: [Any], range: NSRange, copyItems flag: Bool)
init · iOS 5.0+

init

TypeScript
static initCoder(coder: NSCoder): (NSOrderedSet) | null
Swift declaration
init?(coder: NSCoder)
init

init

TypeScript
static initObject(object: unknown): NSOrderedSet
Swift declaration
convenience init(object: Any)
init · iOS 5.0+

init

TypeScript
static initObjectsCount33085(objects: (SDKHandle) | null, cnt: number): NSOrderedSet
Swift declaration
init(objects: UnsafePointer<AnyObject>?, count cnt: Int)
init

init

TypeScript
static initOrderedSet(set: NSOrderedSet): NSOrderedSet
Swift declaration
convenience init(orderedSet set: NSOrderedSet)
init

init

TypeScript
static initOrderedSetCopyItems(set: NSOrderedSet, flag: boolean): NSOrderedSet
Swift declaration
convenience init(orderedSet set: NSOrderedSet, copyItems flag: Bool)
init

init

TypeScript
static initOrderedSetRangeCopyItems(set: NSOrderedSet, range: SDKHandle, flag: boolean): NSOrderedSet
Swift declaration
convenience init(orderedSet set: NSOrderedSet, range: NSRange, copyItems flag: Bool)
init

init

TypeScript
static initSet(set: Array<unknown>): NSOrderedSet
Swift declaration
convenience init(set: Set<AnyHashable>)
init

init

TypeScript
static initSetCopyItems(set: Array<unknown>, flag: boolean): NSOrderedSet
Swift declaration
convenience init(set: Set<AnyHashable>, copyItems flag: Bool)
method

intersects

TypeScript
intersects(other: NSOrderedSet): boolean
Swift declaration
func intersects(_ other: NSOrderedSet) -> Bool
method

intersectsSet

TypeScript
intersectsSet(set: Array<unknown>): boolean
Swift declaration
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
method

isEqual

TypeScript
isEqual(other: NSOrderedSet): boolean
Swift declaration
func isEqual(to other: NSOrderedSet) -> Bool
method

isSubset

TypeScript
isSubsetOf(other: NSOrderedSet): boolean
Swift declaration
func isSubset(of other: NSOrderedSet) -> Bool
method

isSubset

TypeScript
isSubsetOf59415(set: Array<unknown>): boolean
Swift declaration
func isSubset(of set: Set<AnyHashable>) -> Bool
method · iOS 5.0+

object

TypeScript
object(idx: number): unknown
Swift declaration
func object(at idx: Int) -> Any
method

objectEnumerator

TypeScript
objectEnumerator(): NSEnumerator
Swift declaration
func objectEnumerator() -> NSEnumerator
method

objects

TypeScript
objects(indexes: IndexSet): Array<unknown>
Swift declaration
func objects(at indexes: IndexSet) -> [Any]
method

removeObserver

TypeScript
removeObserverForKeyPath(observer: _ObjectiveC_NSObject, keyPath: string): void
Swift declaration
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
method · iOS 5.0+

removeObserver

TypeScript
removeObserverForKeyPathContext(observer: _ObjectiveC_NSObject, keyPath: string, context?: (SDKHandle) | null): void
Swift declaration
func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context: UnsafeMutableRawPointer?)
method

reverseObjectEnumerator

TypeScript
reverseObjectEnumerator(): NSEnumerator
Swift declaration
func reverseObjectEnumerator() -> NSEnumerator
method · iOS 5.0+

setValue

TypeScript
setValue(value: (unknown) | null, key: string): void
Swift declaration
func setValue(_ value: Any?, forKey key: String)
method · iOS 5.0+

sortedArray

TypeScript
sortedArray(sortDescriptors: Array<NSSortDescriptor>): Array<unknown>
Swift declaration
func sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]
method · iOS 5.0+

value

TypeScript
value(key: string): unknown
Swift declaration
func value(forKey key: String) -> Any
get

array

TypeScript
get array(): Array<unknown>
Swift declaration
var array: [Any] { get }
get · iOS 5.0+

count

TypeScript
get count(): number
Swift declaration
var count: Int { get }
get

description

TypeScript
get description(): string
Swift declaration
var description: String { get }
get

firstObject

TypeScript
get firstObject(): (unknown) | null
Swift declaration
var firstObject: Any? { get }
get

lastObject

TypeScript
get lastObject(): (unknown) | null
Swift declaration
var lastObject: Any? { get }
get

reversed

TypeScript
get reversed(): NSOrderedSet
Swift declaration
@NSCopying var reversed: NSOrderedSet { get }
get

set

TypeScript
get set(): Array<unknown>
Swift declaration
var set: Set<AnyHashable> { get }
method · iOS 8.0+

makeIterator

TypeScript
makeIterator(): NSFastEnumerationIterator
Swift declaration
func makeIterator() -> NSFastEnumerationIterator

Return an *iterator* over the elements of this *sequence*. - Complexity: O(1).

get · iOS 8.0+

underestimatedCount

TypeScript
get underestimatedCount(): number
Swift declaration
@nonobjc var underestimatedCount: Int { get }

A value less than or equal to the number of elements in the collection. - Complexity: O(1).

Skipped declarations

11 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSOrderedSet.init(objects:)

A variable number of Swift arguments is not supported.

NSOrderedSet.init(arrayLiteral:)

A variable number of Swift arguments is not supported.

NSOrderedSet.index(ofObjectPassingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.index(_:ofObjectPassingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.index(ofObjectAt:options:passingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.indexes(ofObjectsPassingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.indexes(options:ofObjectsPassingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.indexes(ofObjectsAt:options:passingTest:)

callback cannot propagate synchronous failure

NSOrderedSet.index(of:inSortedRange:options:usingComparator:)

callback cannot propagate synchronous failure

NSOrderedSet.sortedArray(comparator:)

callback cannot propagate synchronous failure

NSOrderedSet.sortedArray(options:usingComparator:)

callback cannot propagate synchronous failure

All Foundation types →