// // FLEXGlobalsTableViewController.h // Flipboard // // Created by Ryan Olson on 2014-05-03. // Copyright (c) 2014 Flipboard. All rights reserved. // #import @protocol FLEXGlobalsTableViewControllerDelegate; @interface FLEXGlobalsTableViewController : UITableViewController @property (nonatomic, weak) id delegate; /// We pretend that one of the app's windows is still the key window, even though the explorer window may have become key. /// We want to display debug state about the application, not about this tool. + (void)setApplicationWindow:(UIWindow *)applicationWindow; /// Adds an entry at the bottom of the list of Global State items. Call this method before this view controller is displayed. /// @param entryName The string to be displayed in the cell. /// @param objectFutureBlock When you tap on the row, information about the object returned by this block will be displayed. /// Passing a block that returns an object allows you to display information about an object whose actual pointer may change at runtime (e.g. +currentUser) /// @note This method must be called from the main thread. /// The objectFutureBlock will be invoked from the main thread and may return nil. /// @note The passed block will be copied and retain for the duration of the application, you may want to use __weak references. + (void)registerGlobalEntryWithName:(NSString *)entryName objectFutureBlock:(id(^)(void))objectFutureBlock; @end @protocol FLEXGlobalsTableViewControllerDelegate - (void)globalsViewControllerDidFinish:(FLEXGlobalsTableViewController *)globalsViewController; @end