{"id":20010119,"url":"https://github.com/cxa/cxaautoremovalnotification","last_synced_at":"2026-02-10T22:04:16.980Z","repository":{"id":24909172,"uuid":"28325892","full_name":"cxa/CXAAutoRemovalNotification","owner":"cxa","description":"[DEPRECATED] Less boilerplate code for NSNotificationCenter.","archived":false,"fork":false,"pushed_at":"2016-01-17T16:38:30.000Z","size":3,"stargazers_count":32,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-04T19:40:01.860Z","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/cxa.png","metadata":{"files":{"readme":"README.md","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":"2014-12-22T05:34:10.000Z","updated_at":"2019-12-18T15:36:05.000Z","dependencies_parsed_at":"2022-07-24T03:16:14.657Z","dependency_job_id":null,"html_url":"https://github.com/cxa/CXAAutoRemovalNotification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cxa/CXAAutoRemovalNotification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FCXAAutoRemovalNotification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FCXAAutoRemovalNotification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FCXAAutoRemovalNotification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FCXAAutoRemovalNotification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxa","download_url":"https://codeload.github.com/cxa/CXAAutoRemovalNotification/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxa%2FCXAAutoRemovalNotification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29319280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-13T07:18:29.685Z","updated_at":"2026-02-10T22:04:16.964Z","avatar_url":"https://github.com/cxa.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CXAAutoRemovalNotification\n\n*Notice*: observers of `NSNotificationCenter` are not required to un-register in their deallocation since iOS 9 / OS X 10.11: (https://developer.apple.com/library/prerelease/mac/releasenotes/Foundation/RN-Foundation/index.html#10_11NotificationCenter)\n\nLess boilerplate code for `NSNotificationCenter`.\n\n## Usage\n\nSimply add `NSObject+CXAAutoRemovalNotification.{h|m}` to your project. \n\nWhereever you need `NSNotificationCenter` to observe using block by `- addObserverForName:object:queue:usingBlock:`, just replace it with `-cxa_addObserverForName:object:queue:usingBlock:`, or if don't care `object` and `queue`, use the shorter `- cxa_addObserverForName:usingBlock:` for your notification observer. `CXAAutoRemovalNotification` will take care of the observer removal in deallocation.\n\n### Example\n\t__weak typeof(self) weakSelf = self;\n\t[self cxa_addObserverForName:UIContentSizeCategoryDidChangeNotification usingBlock:^(NSNotification *note) {\n\t   [weakSelf.tableView reloadData];\n\t}];\n\t\t\n## Creator\n\n* GitHub: \u003chttps://github.com/cxa\u003e\n* Twitter: [@_cxa](https://twitter.com/_cxa)\n* Apps available in App Store: \u003chttp://lazyapps.com\u003e\n\n## License\n\nUnder the MIT license. See the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fcxaautoremovalnotification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxa%2Fcxaautoremovalnotification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxa%2Fcxaautoremovalnotification/lists"}