Просмотр исходного кода

Make FLEXGlobals* enums public

Tanner Bennett лет назад: 7
Родитель
Сommit
b01309678c

+ 34 - 1
Classes/GlobalStateExplorers/Globals/FLEXGlobalsTableViewController.h

@@ -7,9 +7,42 @@
 //
 
 #import "FLEXTableViewController.h"
-
 @protocol FLEXGlobalsTableViewControllerDelegate;
 
+typedef NS_ENUM(NSUInteger, FLEXGlobalsSection) {
+    /// NSProcessInfo, Network history, system log,
+    /// heap, address explorer, libraries, app classes
+    FLEXGlobalsSectionProcessAndEvents,
+    /// Browse container, browse bundle, NSBundle.main,
+    /// NSUserDefaults.standard, UIApplication,
+    /// app delegate, key window, root VC, cookies
+    FLEXGlobalsSectionAppShortcuts,
+    /// UIPasteBoard.general, UIScreen, UIDevice
+    FLEXGlobalsSectionMisc,
+    FLEXGlobalsSectionCustom,
+    FLEXGlobalsSectionCount
+};
+
+typedef NS_ENUM(NSUInteger, FLEXGlobalsRow) {
+    FLEXGlobalsRowNetworkHistory,
+    FLEXGlobalsRowSystemLog,
+    FLEXGlobalsRowLiveObjects,
+    FLEXGlobalsRowAddressInspector,
+    FLEXGlobalsRowFileBrowser,
+    FLEXGlobalsRowCookies,
+    FLEXGlobalsRowSystemLibraries,
+    FLEXGlobalsRowAppClasses,
+    FLEXGlobalsRowAppDelegate,
+    FLEXGlobalsRowRootViewController,
+    FLEXGlobalsRowUserDefaults,
+    FLEXGlobalsRowMainBundle,
+    FLEXGlobalsRowApplication,
+    FLEXGlobalsRowKeyWindow,
+    FLEXGlobalsRowMainScreen,
+    FLEXGlobalsRowCurrentDevice,
+    FLEXGlobalsRowCount
+};
+
 @interface FLEXGlobalsTableViewController : FLEXTableViewController
 
 @property (nonatomic, weak) id <FLEXGlobalsTableViewControllerDelegate> delegate;

+ 0 - 34
Classes/GlobalStateExplorers/Globals/FLEXGlobalsTableViewController.m

@@ -25,40 +25,6 @@
 
 static __weak UIWindow *s_applicationWindow = nil;
 
-typedef NS_ENUM(NSUInteger, FLEXGlobalsSection) {
-    /// NSProcessInfo, Network history, system log,
-    /// heap, address explorer, libraries, app classes
-    FLEXGlobalsSectionProcessAndEvents,
-    /// Browse container, browse bundle, NSBundle.main,
-    /// NSUserDefaults.standard, UIApplication,
-    /// app delegate, key window, root VC, cookies
-    FLEXGlobalsSectionAppShortcuts,
-    /// UIPasteBoard.general, UIScreen, UIDevice
-    FLEXGlobalsSectionMisc,
-    FLEXGlobalsSectionCustom,
-    FLEXGlobalsSectionCount
-};
-
-typedef NS_ENUM(NSUInteger, FLEXGlobalsRow) {
-    FLEXGlobalsRowNetworkHistory,
-    FLEXGlobalsRowSystemLog,
-    FLEXGlobalsRowLiveObjects,
-    FLEXGlobalsRowAddressInspector,
-    FLEXGlobalsRowFileBrowser,
-    FLEXGlobalsRowCookies,
-    FLEXGlobalsRowSystemLibraries,
-    FLEXGlobalsRowAppClasses,
-    FLEXGlobalsRowAppDelegate,
-    FLEXGlobalsRowRootViewController,
-    FLEXGlobalsRowUserDefaults,
-    FLEXGlobalsRowMainBundle,
-    FLEXGlobalsRowApplication,
-    FLEXGlobalsRowKeyWindow,
-    FLEXGlobalsRowMainScreen,
-    FLEXGlobalsRowCurrentDevice,
-    FLEXGlobalsRowCount
-};
-
 @interface FLEXGlobalsTableViewController ()
 
 @property (nonatomic, readonly) NSArray<FLEXTableViewSection<FLEXGlobalsEntry *> *> *sections;