FLEXGlobalsTableViewControllerEntry.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // FLEXGlobalsTableViewControllerEntry.m
  3. // FLEX
  4. //
  5. // Created by Javier Soto on 7/26/14.
  6. // Copyright (c) 2014 f. All rights reserved.
  7. //
  8. #import "FLEXGlobalsTableViewControllerEntry.h"
  9. @implementation FLEXGlobalsTableViewControllerEntry
  10. + (instancetype)entryWithNameFuture:(FLEXGlobalsTableViewControllerEntryNameFuture)nameFuture
  11. viewControllerFuture:(FLEXGlobalsTableViewControllerViewControllerFuture)viewControllerFuture
  12. {
  13. NSParameterAssert(nameFuture);
  14. NSParameterAssert(viewControllerFuture);
  15. FLEXGlobalsTableViewControllerEntry *entry = [[self alloc] init];
  16. entry->_entryNameFuture = [nameFuture copy];
  17. entry->_viewControllerFuture = [viewControllerFuture copy];
  18. return entry;
  19. }
  20. + (instancetype)entryWithNameFuture:(FLEXGlobalsTableViewControllerEntryNameFuture)nameFuture
  21. action:(FLEXGlobalsTableViewControllerRowAction)rowSelectedAction
  22. {
  23. NSParameterAssert(nameFuture);
  24. NSParameterAssert(rowSelectedAction);
  25. FLEXGlobalsTableViewControllerEntry *entry = [[self alloc] init];
  26. entry->_entryNameFuture = [nameFuture copy];
  27. entry->_rowAction = [rowSelectedAction copy];
  28. return entry;
  29. }
  30. @end