| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // FLEXGlobalsTableViewControllerEntry.m
- // FLEX
- //
- // Created by Javier Soto on 7/26/14.
- // Copyright (c) 2014 f. All rights reserved.
- //
- #import "FLEXGlobalsTableViewControllerEntry.h"
- @implementation FLEXGlobalsTableViewControllerEntry
- + (instancetype)entryWithNameFuture:(FLEXGlobalsTableViewControllerEntryNameFuture)nameFuture
- viewControllerFuture:(FLEXGlobalsTableViewControllerViewControllerFuture)viewControllerFuture
- {
- NSParameterAssert(nameFuture);
- NSParameterAssert(viewControllerFuture);
- FLEXGlobalsTableViewControllerEntry *entry = [[self alloc] init];
- entry->_entryNameFuture = [nameFuture copy];
- entry->_viewControllerFuture = [viewControllerFuture copy];
- return entry;
- }
- + (instancetype)entryWithNameFuture:(FLEXGlobalsTableViewControllerEntryNameFuture)nameFuture
- action:(FLEXGlobalsTableViewControllerRowAction)rowSelectedAction
- {
- NSParameterAssert(nameFuture);
- NSParameterAssert(rowSelectedAction);
- FLEXGlobalsTableViewControllerEntry *entry = [[self alloc] init];
- entry->_entryNameFuture = [nameFuture copy];
- entry->_rowAction = [rowSelectedAction copy];
- return entry;
- }
- @end
|