Iain Barclay
Iain Barclay

Reputation: 63

SPSearch in CocoaLibSpotify

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

Upvotes: 2

Views: 498

Answers (1)

iKenndac
iKenndac

Reputation: 18776

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

Upvotes: 1

Related Questions