An open API service indexing awesome lists of open source software.

https://github.com/hyperoslo/nsmanagedobjectcontext-hypsafesave

Warns you of unsafe NSManagedObjectContext saves
https://github.com/hyperoslo/nsmanagedobjectcontext-hypsafesave

Last synced: over 1 year ago
JSON representation

Warns you of unsafe NSManagedObjectContext saves

Awesome Lists containing this project

README

          

# NSManagedObjectContext-HYPSafeSave

[![CI Status](http://img.shields.io/travis/hyperoslo/NSManagedObjectContext-HYPSafeSave.svg?style=flat)](https://travis-ci.org/hyperoslo/NSManagedObjectContext-HYPSafeSave)
[![Version](https://img.shields.io/cocoapods/v/NSManagedObjectContext-HYPSafeSave.svg?style=flat)](http://cocoadocs.org/docsets/NSManagedObjectContext-HYPSafeSave)
[![License](https://img.shields.io/cocoapods/l/NSManagedObjectContext-HYPSafeSave.svg?style=flat)](http://cocoadocs.org/docsets/NSManagedObjectContext-HYPSafeSave)
[![Platform](https://img.shields.io/cocoapods/p/NSManagedObjectContext-HYPSafeSave.svg?style=flat)](http://cocoadocs.org/docsets/NSManagedObjectContext-HYPSafeSave)

When doing `[context save:&error]` warns you about:

- Usage of confinement contexts
- Main context saved in a background thread
- Background context saved in a main thread

## Usage

```objc
#import "NSManagedObjectContext+HYPSafeSave.h"

- (BOOL)save:(NSError * __autoreleasing *)error;
```

## Installation

**NSManagedObjectContext-HYPSafeSave** is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'NSManagedObjectContext-HYPSafeSave', '~> 0.5'
```

## Author

Hyper AS, teknologi@hyper.no

## License

**NSManagedObjectContext-HYPSafeSave** is available under the MIT license. See the LICENSE file for more info.