{"id":17068965,"url":"https://github.com/kgn/xcodesnippets","last_synced_at":"2025-03-23T10:41:33.214Z","repository":{"id":5125711,"uuid":"6291043","full_name":"kgn/XCodeSnippets","owner":"kgn","description":"CodeSnippets for Xcode + a python script to generate a readme so you can see what's in em","archived":false,"fork":false,"pushed_at":"2012-10-21T15:36:00.000Z","size":101,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T17:15:43.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"khopkins218/simple_slugs","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kgn.png","metadata":{"files":{"readme":"readme.md","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":"2012-10-19T07:06:23.000Z","updated_at":"2014-05-28T02:07:02.000Z","dependencies_parsed_at":"2022-07-07T21:24:47.294Z","dependency_job_id":null,"html_url":"https://github.com/kgn/XCodeSnippets","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/kgn%2FXCodeSnippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FXCodeSnippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FXCodeSnippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kgn%2FXCodeSnippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kgn","download_url":"https://codeload.github.com/kgn/XCodeSnippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245090894,"owners_count":20559296,"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-14T11:15:44.361Z","updated_at":"2025-03-23T10:41:33.182Z","avatar_url":"https://github.com/kgn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Checkout to: `~/Library/Developer/Xcode/UserData/CodeSnippets/`\n\n## clang warning push/pop\n\n``` obj-c\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"\u003c#-W warning#\u003e\"\n\u003c#code#\u003e\n#pragma clang diagnostic pop\n```\n\n## dispatch_once\n\n``` obj-c\nstatic id \u003c#object#\u003e;\nstatic dispatch_once_t once;\ndispatch_once(\u0026once, ^{\n    \u003c#object#\u003e = \u003c#value#\u003e;\n});\n```\n\n## init\n\n``` obj-c\n- (id)init{\n    if(!(self = [super init])){\n        return nil;\n    }\n\n    \u003c#code#\u003e\n\n    return self;\n}\n```\n\n## Log Class:MethodName\n\n``` obj-c\nNSLog(@\"%@:%@\", NSStringFromClass([self class]), NSStringFromSelector(_cmd));\n```\n\n## Log Method Name\n\n``` obj-c\nNSLog(@\"%@\", NSStringFromSelector(_cmd));\n```\n\n## Pragma section\n\n``` obj-c\n#pragma mark - \u003c#section#\u003e\n```\n\n## Requires ARC\n\n``` obj-c\n#if !__has_feature(objc_arc)\n#error \u003c#library#\u003e must be built with ARC.\n// You can turn on ARC for only \u003c#library#\u003e files by adding -fobjc-arc to the build phase for each of its files.\n#endif\n```\n\n*Generated by readme.py: `python readme.py`*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fxcodesnippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkgn%2Fxcodesnippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkgn%2Fxcodesnippets/lists"}