{"id":18271452,"url":"https://github.com/neallober/NLFetchedResultsTable","last_synced_at":"2025-04-05T01:31:35.102Z","repository":{"id":1310907,"uuid":"1254746","full_name":"neallober/NLFetchedResultsTable","owner":"neallober","description":"A small open-source library that lets you quickly create a UITableViewController that is backed by an NSFetchedResultsController.","archived":false,"fork":false,"pushed_at":"2011-01-14T15:38:12.000Z","size":109,"stargazers_count":34,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-05T11:53:54.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neallober.png","metadata":{"files":{"readme":"README.mdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-14T15:11:06.000Z","updated_at":"2022-12-28T17:18:50.000Z","dependencies_parsed_at":"2022-08-06T10:16:08.030Z","dependency_job_id":null,"html_url":"https://github.com/neallober/NLFetchedResultsTable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neallober%2FNLFetchedResultsTable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neallober%2FNLFetchedResultsTable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neallober%2FNLFetchedResultsTable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neallober%2FNLFetchedResultsTable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neallober","download_url":"https://codeload.github.com/neallober/NLFetchedResultsTable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:18.442Z","updated_at":"2025-04-05T01:31:30.611Z","avatar_url":"https://github.com/neallober.png","language":"Objective-C","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"NLFetchedResultsTable\n=====================\n\n`NLFetchedResultsTable` is a small open-source class that helps you\nquickly create and configure a `UITableViewController` that is backed\nby an `NSFetchedResultsController`. This is code I use in a lot of my\nprojects, and have extracted into its own class.  The primary benefit\nof using an `NLFetchedResultsTable` is that it handles a lot of the \n`NSFetchedResultsControllerDelegate` and `UITableViewDataSource` methods\nfor you.\n\n### How to Use NLFetchedResultsTable ###\nYou can create and instantiate an `NLFetchedResultsTable` on its own,\nor you can subclass it to customize to your liking.  In the sample\ncode, the app delegate creates an instance of RootViewController with\nthe following:\n\n    RootViewController *rootViewController = (RootViewController *)[navigationController topViewController];\n    rootViewController.managedObjectContext = self.managedObjectContext;\n    rootViewController.entityName = @\"Event\";\n    rootViewController.cellTextLabelKey = @\"name\";\n    rootViewController.cellDetailTextLabelKey = @\"timeStamp\";\n\nThe RootViewController class subclasses `NLFetchedResultsTable` to\nprovide its own add and edit records functionality.\n\n### Required Properties ###\nAfter creating an `NLFetchedResultsTable` or a subclass of `NLFetchedResultsTable`,\nthe following properties are required to be set prior to displaying:\n\n1. managedObjectContext - the `NSManagedObjectContext` from which to fetch objects\n2. entityName - an string specifying the name of the entities to fetch\n3. cellTextLabelKey - they key to use for the textLabel.text property of the `UITableViewCell`s\n\n### Optional Properties ###\nThe following properties can optionally be set to add functionality to\nthe `NLFetchedResultsController`:\n\n1. viewTitle - use this to specify the title for the view\n2. reusableCellIdentifier - the reusableCellIdentifier used by the `UITableViewCell`s that are created\n3. sectionNameKeyPath - use this to specify the key path to use for sections in the table view\n4. sortDescriptors - an `NSArray` of sortDescriptors to use. By default an `NLFetchedResultsTable` will sort by the cellTextLabelKey.\n5. resultsCacheName - use this to manually specify the name for the frc's results cache\n6. cellDetailTextLabelKey - an optional key to use for the cells' detailTextLabel.text\n\n### License ###\nThis code is free for anyone to use in personal or commercial projects under the Creative Commons\nAttribution 3.0 license (http://creativecommons.org/licenses/by/3.0/).\n\nAny comments or suggestions that would help improve this code are always welcome!  Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneallober%2FNLFetchedResultsTable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneallober%2FNLFetchedResultsTable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneallober%2FNLFetchedResultsTable/lists"}