CocoaLibSpotify 中的 SPSearch

发布于 2024-12-28 00:25:25 字数 389 浏览 3 评论 0原文

我正在查看 CocoaLibSpotify,并尝试让一个简单的搜索请求正常工作。 我提出这样的请求:

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

然后轮询搜索返回:

[search searchInProgress]

但我从未看到 searchInProgress 返回 NO - 即。搜索似乎从未完成。

我已经搜索了文档和示例,但它并没有帮助我理解如何正确使用 SPSearch - 肯定会欢迎这里的一些帮助...

谢谢, 伊恩

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

孤独陪着我 2025-01-04 00:25:25

使用键值观察来观察所需属性的更改。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文