Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Undeprecate -[ASCollectionView indexPathForNode:] #3032

Merged
merged 1 commit into from
Feb 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions AsyncDisplayKit/ASCollectionView.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (nullable ASCellNode *)nodeForItemAtIndexPath:(NSIndexPath *)indexPath AS_WARN_UNUSED_RESULT;

/**
* Similar to -indexPathForCell:.
*
* @param cellNode a cellNode in the collection view
*
* @return The index path for this cell node.
*
* @discussion This index path returned by this method is in the _view's_ index space
* and should only be used with @c ASCollectionView directly. To get an index path suitable
* for use with your data source and @c ASCollectionNode, call @c indexPathForNode: on the
* collection node instead.
*/
- (nullable NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode AS_WARN_UNUSED_RESULT;

/**
* Similar to -supplementaryViewForElementKind:atIndexPath:
*
Expand Down Expand Up @@ -391,20 +405,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
- (NSArray<__kindof ASCellNode *> *)visibleNodes AS_WARN_UNUSED_RESULT ASDISPLAYNODE_DEPRECATED_MSG("Use ASCollectionNode method instead.");

/**
* Similar to -indexPathForCell:.
*
* @param cellNode a cellNode in the collection view
*
* @return The index path for this cell node.
*
* @discussion This index path returned by this method is in the _view's_ index space
* and should only be used with @c ASCollectionView directly. To get an index path suitable
* for use with your data source and @c ASCollectionNode, call @c indexPathForNode: on the
* collection node instead.
*/
- (nullable NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode AS_WARN_UNUSED_RESULT ASDISPLAYNODE_DEPRECATED_MSG("Use ASCollectionNode method instead.");

@end

ASDISPLAYNODE_DEPRECATED_MSG("Renamed to ASCollectionDataSource.")
Expand Down