         for trackStore in store.tracks {
             tracks.append(Track(store:trackStore as! TrackStore))
         }
-        let pipe    = Signal<Int, NSError>.pipe()
+        let pipe    = Signal<PlaylistEvent, NSError>.pipe()
         self.signal = pipe.0
         self.sink   = pipe.1
     }

        self.id     = "created-\(Playlist.dateFormatter().stringFromDate(NSDate()))"
        self.title  = title
        self.tracks = []
        let pipe    = Signal<Int, NSError>.pipe()
        self.signal = pipe.0
        self.sink   = pipe.1
    }

        id     = json["url"].stringValue
        title  = json["title"].stringValue
        tracks = json["tracks"].arrayValue.map({ Track(json: $0) })
        let pipe    = Signal<PlaylistEvent, NSError>.pipe()
        self.signal = pipe.0
        self.sink   = pipe.1
    }
