From 3485541d01f1294f0fd323dc2b552b55f6d7029d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20MOR?= Date: Wed, 29 Oct 2014 18:41:16 +0100 Subject: [PATCH] Changed ASControlNodeEvent enum to NS_OPTIONS so that it can be used in swift --- AsyncDisplayKit/ASControlNode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASControlNode.h b/AsyncDisplayKit/ASControlNode.h index bda15debc7..c31d73f08a 100644 --- a/AsyncDisplayKit/ASControlNode.h +++ b/AsyncDisplayKit/ASControlNode.h @@ -12,7 +12,7 @@ @abstract Kinds of events possible for control nodes. @discussion These events are identical to their UIControl counterparts. */ -enum _ASControlNodeEvent +typedef NS_OPTIONS(NSUInteger, ASControlNodeEvent) { ASControlNodeEventTouchDown = 1 << 0, ASControlNodeEventTouchDownRepeat = 1 << 1, @@ -24,7 +24,7 @@ enum _ASControlNodeEvent ASControlNodeEventAllEvents = 0xFFFFFFFF }; -typedef NSUInteger ASControlNodeEvent; + /** @abstract ASControlNode is the base class for control nodes (such as buttons), or nodes that track touches to invoke targets with action messages.