Don't expose hierarchy notifs in public node API.

`-[ASDisplayNode willEnterHierarchy]` and `-didExitHierarchy` are
subclass hooks and should not be called directly -- doing so will
trigger an assertion!  Move these declarations to the subclassing
header.
This commit is contained in:
Nadine Salter 2014-10-01 13:40:27 -07:00
parent 20631a632f
commit a82364a54b
2 changed files with 11 additions and 11 deletions

View File

@ -262,7 +262,17 @@
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event;
/** Description */
/** @name Observing node-related changes */
// Called just before the view is added to a superview.
- (void)willEnterHierarchy;
// Called after the view is removed from the window.
- (void)didExitHierarchy;
/** @name Description */
/**

View File

@ -239,16 +239,6 @@
@property (nonatomic, readonly, assign) ASDisplayNode *supernode;
/** @name Observing node-related changes */
// Called just before the view is added to a superview.
- (void)willEnterHierarchy;
// Called after the view is removed from the window.
- (void)didExitHierarchy;
/** @name Drawing and Updating the View */