https://github.com/iolanguage/notificationcenter
https://github.com/iolanguage/notificationcenter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iolanguage/notificationcenter
- Owner: IoLanguage
- License: mit
- Created: 2018-03-11T11:57:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T15:41:54.000Z (about 8 years ago)
- Last Synced: 2026-01-01T14:36:38.271Z (6 months ago)
- Language: Io
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NotificationCenter
An NotificationCenter similar to the one found in Apple's FoundationKit.
Example use:
```Io
// in listener
listener := NotificationListener clone setTarget(self) setName("FeedDownloadedFile") start
// in sender
Notification clone setSender(self) setName("FeedDownloadedFile") post
// note: notifications can also be reused, and any extra data can be added in it's slots
// to stop listening
listener stop
```
# Installation
```
eerie install https://github.com/IoLanguage/NotificationCenter.git
```