{"id":27366307,"url":"https://github.com/superbil/hcategorymodel","last_synced_at":"2025-04-13T05:56:41.453Z","repository":{"id":10499569,"uuid":"12683349","full_name":"Superbil/HCategoryModel","owner":"Superbil","description":"Managing hierarchical data in iOS","archived":false,"fork":false,"pushed_at":"2013-11-04T09:07:05.000Z","size":432,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T05:56:38.338Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Superbil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-08T16:04:48.000Z","updated_at":"2021-10-23T23:05:11.000Z","dependencies_parsed_at":"2022-09-03T01:51:29.653Z","dependency_job_id":null,"html_url":"https://github.com/Superbil/HCategoryModel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Superbil%2FHCategoryModel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Superbil%2FHCategoryModel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Superbil%2FHCategoryModel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Superbil%2FHCategoryModel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Superbil","download_url":"https://codeload.github.com/Superbil/HCategoryModel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670467,"owners_count":21142901,"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":"2025-04-13T05:56:40.834Z","updated_at":"2025-04-13T05:56:41.444Z","avatar_url":"https://github.com/Superbil.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## HCategoryModel ##\n\nManaging hierarchical data in iOS. This is impelement [managing hierachial data](http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/) in iOS\n\n\n## Need library ##\n\n* sqlite\n* FMDB\n\n\n## Use age ##\n\n    more example in HCategoryModelTests.m\n\n### open data path\n\n    self.categoryModel = [[HCategoryModel alloc] initWithDatabasePath:path];\n\n### insert first category\n\n    NSInteger insertCategoryID = [self.categoryModel insertCategoryWithName:@\"firstNode\" atCategoryID:kRootCategory];\n\n### update category\n\n    NSString *newName = @\"this is a new name\";\n    HCategory *vcf = [self.categoryModel categoryWithCategoryID:2];\n    vcf.name = newName;\n\n    // check newVCF\n    HCategory *newVcf = [self.categoryModel categoryWithCategoryID:2];\n\n### move category\n\n    HCategory *rootCategory = [self.categoryModel categoryWithCategoryID:kRootCategory];\n    HCategory *moveCategory = [self.categoryModel categoryWithCategoryID:3];\n\n    [self.categoryModel moveCategory:moveCategory toCategory:rootCategory];\n\n### list all category from root category\n\n    NSArray *resultCategories = [self.categoryModel listCategoryWithCategoryID:kRootCategory];\n    for (HCategory *vcf in resultCategories) {\n        // .. each vcf\n    }\n\n\n## License ##\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbil%2Fhcategorymodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbil%2Fhcategorymodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbil%2Fhcategorymodel/lists"}