Commit Graph

22 Commits

Author SHA1 Message Date
Blake Watters
a8f64e7982 Continued cleanup related to managed object context work 2012-07-17 13:44:50 -04:00
Blake Watters
b25a1833b3 Ported RestKit to using managed object contexts with concurrency types. Numerous cleanups and API updates. 2012-07-16 22:47:06 -04:00
Blake Watters
8657b4ca75 Remove cellForObjectAtIndexPath: API and migrate cell mapping directly into the UITableViewDataSource callback 2012-07-11 17:09:54 -04:00
Christopher Swasey
6ae6d889a5 Add delegate methods for headerHeight and footerHeight 2012-07-11 16:15:37 -04:00
Blake Watters
1c504022a6 Fixed issues with incorrect retrieval of indexPath for header, footer, and empty items on the fetched results table controller. fixes #798 2012-07-11 16:15:23 -04:00
Jawwad Ahmad
abb46c382c Ensure the stars for all pointers belong to the variable rather than the type. Refs #614 2012-06-04 22:47:30 -04:00
Jawwad Ahmad
eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00
Jawwad Ahmad
10433089a4 Strip trailing whitespace. Refs #614 2012-06-03 22:33:31 -04:00
Jawwad Ahmad
9b25c6bbf2 loadTableFromResourcePath: should be chained to loadTableFromResourcePath:usingBlock: Closes #782. 2012-05-31 17:52:22 -04:00
Blake Watters
8647fa5f42 Fix issue where grouping objects by section in RKTableController and loading an empty collection would fail to refresh table view. 2012-05-25 13:46:18 -04:00
Blake Watters
59c449c2e2 Cleanups to and test coverage expansion of RKTableController API's. refs #765 2012-05-24 12:53:51 -04:00
Blake Watters
992bfb96cc Reworked table controller state into a bit mask to coalesce state change into a single observation. fixes #753
* Added RKLogIntegerAsBinary() helper for logging bit masks
* Implemented RKTableControllerDidLoadObjectsNotification for static and fetched results table controllers
* Cleaned up state definitions within table controller
* Documentation cleanups
2012-05-23 17:25:57 -04:00
Blake Watters
fcb973056b Cleanup trailing whitespace. refs #743 2012-05-17 18:00:16 -04:00
Blake Watters
4ac6a76485 Fix invalid table controller delegate invocation. fixes #683, closes #659
Rename didFinishFinalLoad to didFinalizeLoad for clarity.
2012-04-17 22:54:10 -04:00
Blake Watters
de52c1ad52 Do not removeAllSections before loading table items into a section 2012-04-10 19:22:28 -04:00
Blake Watters
b282e3a813 Added support for grouping objects into sections within RKTableController. closes #658 2012-04-10 11:34:22 -04:00
Blake Watters
457a6126cf Refresh copyright notices for all source files 2012-04-04 09:08:54 -04:00
Blake Watters
c0ae954fb9 API cleanup work in progress on Table Controller 2012-02-23 23:25:31 -05:00
Blake Watters
4142ffdb42 Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application.
* Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest.
* Pulled majority of testing support classes up into the library and documented them.
* Introduced RKApplicationTests app for running the RKTableController UI tests
2012-02-10 17:32:23 -05:00
Jeff Arena
d20f44804e Move a few methods from RKTableController to RKAbstractTableController and added their implementations in RKFetchedResultsTableController. Fixed a bug regarding cell reuse in RKFetchedResultsTableController. Added the ability to set the NSFetchRequest on the RKFetchedResultsTableController, instead of requiring that it be looked up in the RKManagedObjectCache via a provided resourcePath. 2012-02-10 16:30:57 -05:00
Jeff Arena
8ec9ac811e Remove cell param from cellMapping heightOfCellForObjectAtIndexPath block, to avoid issues with and infinite loop. Change a few form methods to comply with tableController nomenclature. Fix broken specs and issues with tableController naming conventions in UI specs. 2012-02-10 16:30:56 -05:00
Blake Watters
3d0f0ab39e Introduced the RKTableController component for iOS.
RKTableController provides a flexible, integrated system for driving iOS table views using
the RestKit object mapping engine. Local domain objects can be mapped into table cells within a
collection or presented for editing as part of a form. There are three flavors of table controllers
available:

* Static Tables: RKTableController can be used to render simple static tables that are composed of RKTableItems
presented in RKTableSections. Table items can quickly be built and added to a table without a backing model
or can have content object mapped into them for presentation.
* Network Tables: RKTableController can also render a table with the results of a network load. The typical use
case here is to have RestKit retrieve a JSON/XML payload from your remote system and then render the content into
a table.
* Core Data Tables: RKFetchedResultsTableController can efficiently drive a table view using objects pulled from a
Core Data managed object context. Typical use-cases here are for the presentation of large collections that are
pulled from a remote system, offering offline access, or speeding up a UI by using Core Data as a fast local cache.

RKTableController supports a number of bells and whistles including integrated searching/filtering and pull to refresh.
2012-02-10 16:30:54 -05:00