{"id":19847027,"url":"https://github.com/polidea/plobservers","last_synced_at":"2025-09-20T10:16:07.575Z","repository":{"id":14211695,"uuid":"16918439","full_name":"Polidea/PLObservers","owner":"Polidea","description":"Small tool for fast implementation of multi-observer pattern in Objective-C","archived":false,"fork":false,"pushed_at":"2016-08-03T14:00:01.000Z","size":149,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-30T01:10:17.724Z","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/Polidea.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-02-17T16:11:57.000Z","updated_at":"2016-08-03T14:00:02.000Z","dependencies_parsed_at":"2022-08-25T15:41:45.572Z","dependency_job_id":null,"html_url":"https://github.com/Polidea/PLObservers","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/Polidea%2FPLObservers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2FPLObservers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2FPLObservers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polidea%2FPLObservers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polidea","download_url":"https://codeload.github.com/Polidea/PLObservers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278377,"owners_count":17285080,"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-12T13:13:15.228Z","updated_at":"2025-09-20T10:16:02.531Z","avatar_url":"https://github.com/Polidea.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\nThis library is deprecated in favor of [PLXObservers](https://github.com/Polidea/PLXObservers)\n\n---\n\n# PLObservers\n\u003c!--\n[![CI Status](http://img.shields.io/travis/Antoni Kedracki/PLObservers.svg?style=flat)](https://travis-ci.org/Antoni Kedracki/PLObservers)\n--\u003e\n[![Version](https://img.shields.io/cocoapods/v/PLObservers.svg?style=flat)](http://cocoadocs.org/docsets/PLObservers)\n[![License](https://img.shields.io/cocoapods/l/PLObservers.svg?style=flat)](http://cocoadocs.org/docsets/PLObservers)\n[![Platform](https://img.shields.io/cocoapods/p/PLObservers.svg?style=flat)](http://cocoadocs.org/docsets/PLObservers)\n\nSmall tool for fast implementation of multi-observer pattern in Objective-C\n\n## Usage\nGiven you have a observer protocole (basicly the same as a delegate protocole):\n\n```Objective-C\n@protocol ObserverProtocol \u003cNSObject\u003e\n\n- (void)somethingDidHappen:(NSString *)message more:(NSInteger)more;\n\n@end\n```\n\nCreate an instance of PLObservers with your delegate protocol:\n\n```Objective-C\nPLObservers \u003cObserverProtocol\u003e *observers = (PLObservers \u003cObserverProtocol\u003e*)[[PLObservers alloc] initWithObserverProtocol:@protocol(ObserverProtocol)];\n```\n\nAdd/remove as many observers (implementing your PLObservers) as you like: \n\n```Objective-C\n[observers addObserver:myObserver1]\n[observers removeObserver:myObserver2]\n```    \n\nCalling a ObserverProtocol method on the PLObservers instance will be forwarded to the registered observers:\n\n```Objective-C\n[observers somethingDidHappen:@\"test\" more:123] \n```\n\n## Installation\n\nPLObservers is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"PLObservers\"\n\n## Author\n\nAntoni Kedracki, akedracki@gmail.com  \nPolidea\n\n## License\n\nPLObservers is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolidea%2Fplobservers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolidea%2Fplobservers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolidea%2Fplobservers/lists"}