Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
Added common typealias entries
Browse files Browse the repository at this point in the history
  • Loading branch information
grosch committed Feb 7, 2016
1 parent a33598b commit 08083e5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Source/NotificationObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ import Foundation
/// Describes a notification's userInfo dictionary
public typealias UserInfo = [NSObject : AnyObject]

/// A notification that doesn't care about its sender or user info
public typealias BroadcastNotification = Notification<Any?, AnyObject>

/// A notification observer that doesn't care about its sender or user info
public typealias BroadcastObserver = NotificationObserver<Any?, AnyObject>

/// The type to use for blocks which don't care about their sender or user info
public typealias BroadcastHandler = BroadcastObserver.ValueSenderHandler

/// A notification for a Cocoa provided notification
public typealias CocoaNotification = Notification<Any, AnyObject>

/// A notification observer for a Cocoa provided notification
public typealias CocoaObserver = NotificationObserver<Any, AnyObject>

/// The type to use for blocks which receive a Cocoa notification
public typealias CocoaHandler = CocoaObserver.NotificationHandler

/**
- parameter lhs: A UserInfo instance.
Expand Down

0 comments on commit 08083e5

Please sign in to comment.