{"id":18271822,"url":"https://github.com/esminc/CRUDViewTemplate","last_synced_at":"2025-04-05T02:30:44.535Z","repository":{"id":625376,"uuid":"265570","full_name":"esminc/CRUDViewTemplate","owner":"esminc","description":"This tool is a CRUD base view template for Core Data on iPhone SDK.","archived":false,"fork":false,"pushed_at":"2009-07-31T09:30:47.000Z","size":126,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":43,"default_branch":"master","last_synced_at":"2024-11-05T11:59:13.520Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esminc.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-31T09:21:36.000Z","updated_at":"2014-04-25T15:24:10.000Z","dependencies_parsed_at":"2022-07-07T15:41:19.198Z","dependency_job_id":null,"html_url":"https://github.com/esminc/CRUDViewTemplate","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/esminc%2FCRUDViewTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esminc%2FCRUDViewTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esminc%2FCRUDViewTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esminc%2FCRUDViewTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esminc","download_url":"https://codeload.github.com/esminc/CRUDViewTemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279276,"owners_count":20912856,"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:32.299Z","updated_at":"2025-04-05T02:30:43.598Z","avatar_url":"https://github.com/esminc.png","language":"Objective-C","readme":"INTRODUCTION\n\nThis tool is a CRUD base view template for Core Data on iPhone SDK.\n\nLEGAL\n\nCrudViewTemplate is copyrighted open-source software\nthat is released under the MIT Lincence.\nFor details on the lisence, see the LICENSE file.\n\nINSTALLATION\n\n1. shutdown Xcode.\n2. command make \u0026 install.\n  $ ./make_template\n  $ ./install_template\n\nHOW TO USE\n\n1. startup Xcode.\n2. generate any \"Navigation-based Application (use Core Data)\" project. (e.g. named 'CustomerManagement')\n3. make any Model.\n   (e.g. CustomerManagement.xcdatamodel)\n   entity 'Customer' has attributes\n   'name' as String, default value is 'new'\n   'signupDay' as Date. default value is '2000-01-01 00:00:00 +9000'\n\n4. select \"Classes\" group \u0026 open \"New Files\" \u0026 select \"User Templates\" - \"Cocoa Touch Class\".\n5. generate \"CrudViewController subclass\". (e.g. named 'CustomerViewController')\n6. import CrudViewController subclass.\n   (e.g. CustomerManagementAppDelegate.m)\n\n    #import \"CustomerViewController.h\"\n\n7. setup ListedViewController.\n   (e.g. - applicationDidFinishLaunching:)\n\n    //// initialize\n    ListedCustomerViewController *listViewController = [[ListedCustomerViewController alloc] init];\n    //// set up FetchedResultController\n    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];\n    NSEntityDescription *entity = [NSEntityDescription entityForName:@\"Customer\" inManagedObjectContext:self.managedObjectContext];\n    [fetchRequest setEntity:entity];\n    NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@\"name\" ascending:YES];\n    NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];\n    [fetchRequest setSortDescriptors:sortDescriptors];\n    NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:managedObjectContext sectionNameKeyPath:nil cacheName:@\"Root\"];\n    listViewController.fetchedResultsController = aFetchedResultsController;\n    //// push to NavigationController\n    [navigationController pushViewController:listViewController animated:YES];\n\n    [window addSubview:[navigationController view]];\n    [window makeKeyAndVisible];\n   \n8. run, so application show CRUD view.\n\nUNINSTRATION\n\n1. shutdown Xcode.\n2. command make \u0026 install.\n  $ ./uninstall_template\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesminc%2FCRUDViewTemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesminc%2FCRUDViewTemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesminc%2FCRUDViewTemplate/lists"}