Skip to content

Commit

Permalink
Finally fixing nested list formatting by blowing it up
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Aug 13, 2012
1 parent 0ff4c42 commit 40b8053
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions 2012-08-13-nsincrementalstore.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,19 @@ Here's where things get interesting, from an implementation standpoint. (And whe

To make matters worse, this method requires very specific and very different return values depending on the request parameter (and the `resultType`, if it's an `NSFetchRequest`). The only way to explain it is to run through all of the possibilities:

- Request Type: `NSFetchRequestType`
- Result Type: `NSManagedObjectResultType`, `NSManagedObjectIDResultType`, `NSDictionaryResultType`
- **Return**: `NSArray` of objects matching request
#### Request Type: `NSFetchRequestType`

- Result Type: `NSManagedObjectResultType`, `NSManagedObjectIDResultType`, or `NSDictionaryResultType`

> **Return**: `NSArray` of objects matching request
- Result Type: `NSCountResultType`

- Result Type: `NSCountResultType`
- **Return**: `NSNumber` of count of objects matching request
> **Return**: `NSNumber` of count of objects matching request
- Request Type: `NSSaveRequestType`
- **Return**: Empty `NSArray`
#### Request Type: `NSSaveRequestType`

> **Return**: Empty `NSArray`
So, one method to do all read _and_ write operations with a persistence backend. At least all of the heavy lifting goes to the same place, right?

Expand Down

0 comments on commit 40b8053

Please sign in to comment.