From a81d4006e1633507f6a0794992d78409f03ae189 Mon Sep 17 00:00:00 2001 From: Adlai Holler <guy.on.internet@me.com> Date: Tue, 14 Feb 2017 22:31:24 -0800 Subject: [PATCH] Undeprecate -[ASCollectionView indexPathForNode:] (#3032) --- AsyncDisplayKit/ASCollectionView.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/AsyncDisplayKit/ASCollectionView.h b/AsyncDisplayKit/ASCollectionView.h index 70e16916b5..e6b3807a2f 100644 --- a/AsyncDisplayKit/ASCollectionView.h +++ b/AsyncDisplayKit/ASCollectionView.h @@ -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: * @@ -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.")