diff --git a/MVMCore/MVMCore/Singletons/MVMCoreObject.h b/MVMCore/MVMCore/Singletons/MVMCoreObject.h index fb2621d..ac5d1f8 100644 --- a/MVMCore/MVMCore/Singletons/MVMCoreObject.h +++ b/MVMCore/MVMCore/Singletons/MVMCoreObject.h @@ -32,6 +32,9 @@ @property (nullable, weak, nonatomic) MVMCoreLoggingHandler *loggingDelegate; @property (nullable, weak, nonatomic) id globalTopAlertDelegate; +// A reference to the calling application delegate that should be set. For a normal app, could be the UIApplicationDelegate. For watch, could be WKExtensionDelegate. For iMessage, could be MSMessagesAppViewController. etc, etc. Useful for the framework to call delegate specific functions. +@property (nullable, weak, nonatomic) id applicationDelegate; + // A singleton. + (nullable instancetype)sharedInstance;