SPSearch in CocoaLibSpotify

安稳与你 提交于 2020-01-13 06:16:19

问题


I'm looking at CocoaLibSpotify, and trying to get a simple search request working. I make the request like this:

SPSearch *search = [[SPSearch alloc] initWithSearchQuery:@"Adele" inSession:[SPSession sharedSession] ];

And am then polling for the search to return with:

[search searchInProgress]

But I never see searchInProgress return a NO - ie. the search does not appear to ever complete.

I've searched through the documentation and examples but it hasn't helped me to understand how to use the SPSearch correctly - would definitely welcome some help here...

Thanks, Iain


回答1:


Use Key-Value Observing to observe changes to the properties you need.



来源:https://stackoverflow.com/questions/8927753/spsearch-in-cocoalibspotify

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!