From 04ad021daa37725edb95c8a573155944bd95bd82 Mon Sep 17 00:00:00 2001 From: Levi McCallum Date: Mon, 30 Nov 2015 06:55:32 -0800 Subject: [PATCH] Rename positioning block to sport as namespace --- AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.h | 4 ++-- AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.h b/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.h index ee78b7c7f0..a0713e5790 100755 --- a/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.h +++ b/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.h @@ -10,7 +10,7 @@ #import "ASTextKitRenderer.h" -typedef void (^ck_text_component_index_block_t)(NSUInteger characterIndex, +typedef void (^as_text_component_index_block_t)(NSUInteger characterIndex, CGRect glyphBoundingRect, BOOL *stop); @@ -79,7 +79,7 @@ typedef NS_ENUM(NSUInteger, ASTextKitRendererMeasureOption) { Triggers initialization of textkit components, truncation, and sizing. */ - (void)enumerateTextIndexesAtPosition:(CGPoint)position - usingBlock:(ck_text_component_index_block_t)block; + usingBlock:(as_text_component_index_block_t)block; /** Returns the single text index whose glyph's centroid is closest to the given position. diff --git a/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.mm b/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.mm index 5fe66b2288..10cb53e7d5 100755 --- a/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.mm +++ b/AsyncDisplayKit/TextKit/ASTextKitRenderer+Positioning.mm @@ -258,7 +258,7 @@ static const CGFloat ASTextKitRendererTextCapHeightPadding = 1.3; return properGlyphRect; } -- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(ck_text_component_index_block_t)block +- (void)enumerateTextIndexesAtPosition:(CGPoint)externalPosition usingBlock:(as_text_component_index_block_t)block { // This method is a little complex because it has to call out to client code from inside an enumeration that needs // to achieve a lock on the textkit components. It cannot call out to client code from within that lock so we just