Up
Authors
Richard Frith-Macdonald (rfm@gnu.org
)
Date: Generated at 2024-11-07 16:52:01 -0500
Copyright: (C) 2006 Free Software Foundation, Inc.
class_NSIndexPath
NSObject
NSObject
NSIndexPath
NSIndexPath
NSObject->NSIndexPath
p_NSCoding
NSCoding
p_NSCoding->NSIndexPath
p_NSCopying
NSCopying
p_NSCopying->NSIndexPath
Declared in:
Foundation/NSIndexPath.h
Conforms to:
NSCoding
NSCopying
Availability: MacOS-X 10.4.0, Base 1.2.0
Instances of this class represent a series of
indexes into a hierarchy of arrays. Each
instance is a unique shared object.
+ (
NSIndexPath *)
indexPathForItem: (
NSInteger )item
inSection: (
NSInteger )section;
Availability: MacOS-X 10.11.0, Base 1.2.0
Return a path containing an item number
and section .
+ (
NSIndexPath *)
indexPathForRow: (
NSInteger )item
inSection: (
NSInteger )section;
Availability: MacOS-X 10.13.0, Base 1.2.0
Return a path containing row number and
section .
+ (id)
indexPathWithIndex: (
NSUInteger )anIndex;
Availability: MacOS-X 10.4.0, Base 1.2.0
Return a path containing the single value
anIndex .
+ (id)
indexPathWithIndexes: (
NSUInteger *)indexes
length: (
NSUInteger )length;
Availability: MacOS-X 10.4.0, Base 1.2.0
Return a path containing all the indexes
in the supplied array.
- (
NSComparisonResult )
compare: (
NSIndexPath *)other;
Availability: MacOS-X 10.4.0, Base 1.2.0
Compares other with the receiver.
Returns NSOrderedSame if the two are
identical. Returns NSOrderedAscending if
other is less than the receiver in a
depth-wise comparison. Returns
NSOrderedDescending otherwise.
- (void)
getIndexes: (
NSUInteger *)aBuffer;
Availability: MacOS-X 10.4.0, Base 1.2.0
Copies all index values from the receiver into
aBuffer .
- (
NSUInteger )
indexAtPosition: (
NSUInteger )position;
Availability: MacOS-X 10.4.0, Base 1.2.0
Return the index at the specified
position or NSNotFound if there is no
index at the specified position .
- (
NSIndexPath *)
indexPathByAddingIndex: (
NSUInteger )anIndex;
Availability: MacOS-X 10.4.0, Base 1.2.0
Return path formed by adding anIndex to
the receiver. Return path formed by adding the
index to the receiver.
- (
NSIndexPath *)
indexPathByRemovingLastIndex ;
Availability: MacOS-X 10.4.0, Base 1.2.0
Return path formed by removing the last index from
the receiver.
- (id)
initWithIndex: (
NSUInteger )anIndex;
Availability: MacOS-X 10.4.0, Base 1.2.0
This is a designated initialiser for the class.
Returns the shared instance containing the
specified index, creating it and destroying the
receiver if necessary.
- (id)
initWithIndexes: (
NSUInteger *)indexes
length: (
NSUInteger )length;
Availability: MacOS-X 10.4.0, Base 1.2.0
This is a designated initialiser for the class.
Returns the shared instance containing the
specified index array, creating it and destroying
the receiver if necessary. Initialise the
receiver to contain the specified
indexes . May return an existing
index path.
- (
NSInteger )
item ;
Availability: MacOS-X 10.13.0, Base 1.2.0
Return an index number identifying a row in a table
view
- (
NSUInteger )
length ;
Availability: MacOS-X 10.4.0, Base 1.2.0
Returns the number of index values present in the
receiver.
- (
NSInteger )
section ;
Availability: MacOS-X 10.11.0, Base 1.2.0
Return an index number identifying a section in a
collection view
Up