{"id":16203309,"url":"https://github.com/sschmid/floc-reflection","last_synced_at":"2025-04-07T19:18:34.433Z","repository":{"id":9352258,"uuid":"11203829","full_name":"sschmid/Floc-Reflection","owner":"sschmid","description":"Reflection for Objective-C.","archived":false,"fork":false,"pushed_at":"2013-07-09T17:16:30.000Z","size":252,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T12:08:35.701Z","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/sschmid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-05T16:30:16.000Z","updated_at":"2023-07-03T16:50:11.000Z","dependencies_parsed_at":"2022-09-22T16:20:29.263Z","dependency_job_id":null,"html_url":"https://github.com/sschmid/Floc-Reflection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sschmid%2FFloc-Reflection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sschmid%2FFloc-Reflection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sschmid%2FFloc-Reflection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sschmid%2FFloc-Reflection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sschmid","download_url":"https://codeload.github.com/sschmid/Floc-Reflection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713259,"owners_count":20983683,"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-10-10T09:53:43.326Z","updated_at":"2025-04-07T19:18:34.409Z","avatar_url":"https://github.com/sschmid.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Floc Reflection\n![Floc Reflection Logo](http://sschmid.com/Dev/iOS/Libs/Floc-Reflection/Floc-Reflection-128.png)\n[![Build Status](https://travis-ci.org/sschmid/Floc-Reflection.png?branch=master)](https://travis-ci.org/sschmid/Floc-Reflection)\n\n## Description\nFloc Reflection is a set of class methods to easily inspect objects in Objective-C.\n\n## How to use Floc Reflection\n\n#### Inspect an object\n\n```objective-c\nCar *car = [[Car alloc] init];\n\nBOOL isClass = [FLReflection isClass:car];\nBOOL isProtocol = [FLReflection isProtocol:car];\nBOOL isBlock = [FLReflection isBlock:car];\nBOOL isInstance = [FLReflection isInstance:car];\n\nNSLog(@\"isClass = %d\", isClass);        // NO\nNSLog(@\"isProtocol = %d\", isProtocol);  // NO\nNSLog(@\"isBlock = %d\", isBlock);        // NO\nNSLog(@\"isInstance = %d\", isInstance);  // YES\n```\n\n#### Get all property names of a class\n\n```objective-c\nNSArray *propertyNames = [FLReflection getAllPropertyNamesOfClass:[Car class]];\nNSLog(@\"propertyNames = %@\", propertyNames);  // [@\"wheel\", @\"engine\"]\n```\n\n#### Get the property type of a class\n\n```objective-c\n// returns class 'Wheel'\nid wheelType = [FLReflection getTypeForProperty:@\"wheel\"\n                                        ofClass:[Car class]];\n\n// returns protocol \u003cEngine\u003e\nid engineType = [FLReflection getTypeForProperty:@\"engine\"\n                                         ofClass:[Car class]];\n```\n\n## Install Floc Reflection\nYou find the source files you need in Floc-Reflection/Classes.\n\n## CocoaPods\nInstall [CocoaPods] and add the Floc Reflection reference to your Podfile\n\n```\nplatform :ios, '5.0'\n  pod 'Floc-Reflection'\nend\n```\n\n#### Install Floc Reflection\n\n```\n$ cd path/to/project\n$ pod install\n```\n\nOpen the created Xcode Workspace file.\n\n[CocoaPods]: http://cocoapods.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsschmid%2Ffloc-reflection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsschmid%2Ffloc-reflection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsschmid%2Ffloc-reflection/lists"}