Latest 0.2.0
Homepage https://github.com/timbodeit/NotificationManager
License MIT
Platforms ios 8.0, requires ARC
Authors

Build Status
Version
License
Platform

NotificationManager is a block-based NSNotificationCenter wrapper, that deregisters automatically
on deallocation.

Usage

Create one NotificationManager instance per object.

import NotificationManager 

class Foo {
  let notificationManager = NotificationManager()

  init() {
    notificationManager.registerObserver("BarNotification") { [unowned self] notification in
      // TODO: handle notification
    }
  }
}

Installation

NotificationManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "NotificationManager"

Author

Pod created by Tim Bodeit, [email protected]

Most of the credit goes to More indirection

License

NotificationManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "NotificationManager",
    "version": "0.2.0",
    "summary": "Make NSNotificationCenter suck less.",
    "description": "NSNotificationCenter wrapper block support and automatic unregistering",
    "homepage": "https://github.com/timbodeit/NotificationManager",
    "license": "MIT",
    "authors": {
        "Tim Bodeit": "[email protected]"
    },
    "source": {
        "git": "https://github.com/timbodeit/NotificationManager.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This