{"action":"closed","issue":{"url":"https://api.github.com/repos/spotify/ios-sdk/issues/349","labels_url":"https://api.github.com/repos/spotify/ios-sdk/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/spotify/ios-sdk/issues/349/comments","events_url":"https://api.github.com/repos/spotify/ios-sdk/issues/349/events","html_url":"https://github.com/spotify/ios-sdk/issues/349","id":81014421,"number":349,"title":"adding a track to a playlist","user":{"login":"mph070770","id":508539,"avatar_url":"https://avatars.githubusercontent.com/u/508539?v=3","gravatar_id":"","url":"https://api.github.com/users/mph070770","html_url":"https://github.com/mph070770","followers_url":"https://api.github.com/users/mph070770/followers","following_url":"https://api.github.com/users/mph070770/following{/other_user}","gists_url":"https://api.github.com/users/mph070770/gists{/gist_id}","starred_url":"https://api.github.com/users/mph070770/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mph070770/subscriptions","organizations_url":"https://api.github.com/users/mph070770/orgs","repos_url":"https://api.github.com/users/mph070770/repos","events_url":"https://api.github.com/users/mph070770/events{/privacy}","received_events_url":"https://api.github.com/users/mph070770/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spotify/ios-sdk/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-26T15:30:04Z","updated_at":"2015-05-27T17:56:41Z","closed_at":"2015-05-27T17:56:41Z","body":"Hi All,\r\n\r\nCan anyone advise on how to do this? I've tried the following, and it fails:\r\n\r\n```\r\nNSArray *test = @[@\"spotify:artist:3LfO03nEZMdWNHG2tLpMa0\", @\"spotify:artist:3LfO03nEZMdWNHG2tLpMa0\"];\r\n[SPTPlaylistSnapshot addTracksToPlaylist:test withAccessToken:auth.session.accessToken callback:nil];\r\n```\r\n\r\nI get an error \"no known class method for selector 'addTracksToPlaylist:withAccessToken:callback:'\r\n\r\nIf I change the prototype:\r\n\r\n```\r\n-(void)addTracksToPlaylist:(NSArray *)tracks\r\n\t\t   withAccessToken:(NSString *)accessToken\r\n\t\t\t\t  callback:(SPTErrorableOperationCallback)block;\r\n```\r\n\r\nto \r\n\r\n```\r\n+(void)addTracksToPlaylist:(NSArray *)tracks\r\n\t\t   withAccessToken:(NSString *)accessToken\r\n\t\t\t\t  callback:(SPTErrorableOperationCallback)block;\r\n```\r\n\r\ni.e. change from -(void) to +(void) then the code compiles but I get the following runtime error:\r\n\r\n```\r\n+[SPTPlaylistSnapshot addTracksToPlaylist:withAccessToken:callback:]: unrecognized selector sent to class 0x43750c\r\n2015-05-26 16:27:54.448 Simple Track Playback[2477:901360] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[SPTPlaylistSnapshot addTracksToPlaylist:withAccessToken:callback:]: unrecognized selector sent to class 0x43750c'\r\n*** First throw call stack:\r\n(0x2416afef 0x326aac8b 0x24170325 0x2416e327 0x2409de78 0xa8d29 0x6bb173 0x6bb15f 0x6bee45 0x24130609 0x2412ed09 0x2407b201 0x2407b013 0x2b91a201 0x2781fa59 0xb14d9 0x32c36aaf)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```\r\n\r\nI'm really just guessing here so if anyone can help that would be very welcome.\r\n\r\nThanks\r\nMartin"}}