Skip to content

Commit

Permalink
Update documentation on context ivar
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler committed Feb 14, 2019
1 parent 13fda03 commit 2707570
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/ASDisplayNode.h
Expand Up @@ -97,8 +97,9 @@ AS_EXTERN NSInteger const ASDefaultDrawingPriority;
@interface ASDisplayNode : NSObject <ASLocking> {
@public
/**
* A field for clients to use as they please, for example in implementing category methods on
* the base class. Example usage can be found in CatDealsCollectionView.
* The _context ivar is unused by Texture, but provided to enable advanced clients to make powerful extensions to base class functionality.
* For example, _context can be used to implement category methods on ASDisplayNode that add functionality to all node subclass types.
* Code demonstrating this technique can be found in the CatDealsCollectionView example.
*/
void *_context;
}
Expand Down

0 comments on commit 2707570

Please sign in to comment.