Skip to content

The fastest way to get a group of objectIDs and primary keys from Core Data

License

Notifications You must be signed in to change notification settings

hyperoslo/NSManagedObject-ANDYObjectIDs

 
 

Repository files navigation

NSManagedObject-ANDYObjectIDs

CI Status Version License Platform

Usage

NSDictionary *dictionary = [NSManagedObject andy_dictionaryOfIDsAndFetchedIDsInContext:self.managedObjectContext
                                                                         usingLocalKey:@"remoteID"
                                                                         forEntityName:@"User"];

This will be a dictionary that has as keys your primary key, such as the remoteID, and as value the NSManagedObjectID.

Installation

NSManagedObject-ANDYObjectIDs is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'NSManagedObject-ANDYObjectIDs'

Author

Elvis Nuñez, hello@nselvis.com

License

NSManagedObject-ANDYObjectIDs is available under the MIT license. See the LICENSE file for more info.

About

The fastest way to get a group of objectIDs and primary keys from Core Data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 92.9%
  • Ruby 7.1%