-
Notifications
You must be signed in to change notification settings - Fork 10
Using with Swift #9
Copy link
Copy link
Open
Labels
Description
Here is the short sample:
https://gist.github.com/cfr/dfcb50accd64014a0019
Obviously we need some kind of wrapper to avoid casting:
let data: @objc_block (NSDictionary, AnyObject) -> () = { (d: NSDictionary, raw: AnyObject) -> () in
NSLog("Got data: \(d)")
}
p.on("data" as AnyObject!, listener: unsafeBitCast(data, AnyObject.self))
Reactions are currently unavailable