From 597e518b346ada83fc8af15a7d118cf4678239be Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 7 Dec 2018 15:53:18 -0500 Subject: [PATCH] creates a variable in the core to point to the creator of the framework. can be used by the framework for specifics. --- MVMCore/MVMCore/Singletons/MVMCoreObject.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MVMCore/MVMCore/Singletons/MVMCoreObject.h b/MVMCore/MVMCore/Singletons/MVMCoreObject.h index 1e4d9b0..438cad2 100644 --- a/MVMCore/MVMCore/Singletons/MVMCoreObject.h +++ b/MVMCore/MVMCore/Singletons/MVMCoreObject.h @@ -33,6 +33,9 @@ @property (nullable, weak, nonatomic) id 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;