Add extension points for global node behaviors, potentially replacing interface state delegates (#1229)

* Add extension points for global node behaviors via categories and a public ivar

* Update documentation on context ivar
This commit is contained in:
Adlai Holler
2019-02-14 14:17:03 -08:00
committed by GitHub
parent affa588654
commit 6e7cdea797
10 changed files with 200 additions and 48 deletions

View File

@@ -24,6 +24,12 @@
#define AS_BUILD_UIUSERINTERFACESTYLE 0
#endif
/**
* Decorates methods that clients can implement in categories on our base class. These methods
* will be stubbed with an empty implementation if no implementation is provided.
*/
#define AS_CATEGORY_IMPLEMENTABLE
#ifdef __GNUC__
# define ASDISPLAYNODE_GNUC(major, minor) \
(__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor)))