One Logo Pool Ball
Foundation · IOS API REFERENCE

NSIndexSet

class · SDK 27.1

class NSIndexSet

Members (25)

method

contains

TypeScript
contains(value: number): boolean
Swift declaration
func contains(_ value: Int) -> Bool
method

contains

TypeScript
contains41430(indexSet: IndexSet): boolean
Swift declaration
func contains(_ indexSet: IndexSet) -> Bool
method

contains

TypeScript
containsIn(range: SDKHandle): boolean
Swift declaration
func contains(in range: NSRange) -> Bool
method · iOS 2.0+

countOfIndexes

TypeScript
countOfIndexes(range: SDKHandle): number
Swift declaration
func countOfIndexes(in range: NSRange) -> Int
method · iOS 4.0+

enumerate

TypeScript
enumerateInOptionsUsing(range: SDKHandle, opts: NSEnumerationOptions, block: ((arg0: number, arg1: NativeOut<boolean>) => void)): void
Swift declaration
func enumerate(in range: NSRange, options opts: NSEnumerationOptions = [], using block: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 4.0+

enumerate

TypeScript
enumerate(block: ((arg0: number, arg1: NativeOut<boolean>) => void)): void
Swift declaration
func enumerate(_ block: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 4.0+

enumerate

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

enumerateRanges

TypeScript
enumerateRangesInOptionsUsing(range: SDKHandle, opts: NSEnumerationOptions, block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateRanges(in range: NSRange, options opts: NSEnumerationOptions = [], using block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 5.0+

enumerateRanges

TypeScript
enumerateRanges(block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateRanges(_ block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 5.0+

enumerateRanges

TypeScript
enumerateRangesOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateRanges(options opts: NSEnumerationOptions = [], using block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
method

getIndexes

TypeScript
getIndexes(indexBuffer: SDKHandle, bufferSize: number, range?: (SDKHandle) | null): number
Swift declaration
func getIndexes(_ indexBuffer: UnsafeMutablePointer<Int>, maxCount bufferSize: Int, inIndexRange range: NSRangePointer?) -> Int
method

indexGreaterThanIndex

TypeScript
indexGreaterThanIndex(value: number): number
Swift declaration
func indexGreaterThanIndex(_ value: Int) -> Int
method

indexGreaterThanOrEqual

TypeScript
indexGreaterThanOrEqual(value: number): number
Swift declaration
func indexGreaterThanOrEqual(to value: Int) -> Int
method

indexLessThanIndex

TypeScript
indexLessThanIndex(value: number): number
Swift declaration
func indexLessThanIndex(_ value: Int) -> Int
method

indexLessThanOrEqual

TypeScript
indexLessThanOrEqual(value: number): number
Swift declaration
func indexLessThanOrEqual(to value: Int) -> Int
init

init

TypeScript
static initIndex(value: number): NSIndexSet
Swift declaration
convenience init(index value: Int)
init

init

TypeScript
static initIndexSet(indexSet: IndexSet): NSIndexSet
Swift declaration
init(indexSet: IndexSet)
init

init

TypeScript
static initIndexesIn(range: SDKHandle): NSIndexSet
Swift declaration
init(indexesIn range: NSRange)
method

intersects

TypeScript
intersects(range: SDKHandle): boolean
Swift declaration
func intersects(in range: NSRange) -> Bool
method

isEqual

TypeScript
isEqual(indexSet: IndexSet): boolean
Swift declaration
func isEqual(to indexSet: IndexSet) -> Bool
get

count

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

firstIndex

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

lastIndex

TypeScript
get lastIndex(): number
Swift declaration
var lastIndex: Int { get }
method · iOS 8.0+

makeIterator

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

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

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

NSIndexSet.index(passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.index(options:passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.index(in:options:passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.indexes(passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.indexes(options:passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.indexes(in:options:passingTest:)

callback cannot propagate synchronous failure

NSIndexSet.init()

inherited init: cannot prove legal (class declares 5 custom initializers)

All Foundation types →