Hi everybody,
I've got a small app with two tableviews; one with iTunes playlists, and one with the tracks in the selected playlist. (Just doing this to learn)

I added a NSSearchField to the program, but can't get it to work. Am I right that it's meant to be possible to, with 0 lines of code, filter out rows that match the search text?
Sure seems so: http://www.borkware.com/quickies/single?id=252

However, I can't get it to work, and it feels like I've tried everything (bar writing the code!). I have a playlist controller and a track controller. At the moment, the NSSearchField is bound like so:
Predicate -> Bind to: Track controller
Controller  key: filterPredicate
Model Key Path: tracks (what should I put here? tracks is the name of the instance var with the track objects (NSDictionaries), but nothing seems to help.)
Display name: predicate (what's this?)
Predicate Format: name contains $value (name is a key in the track objects)

No matter what I type in the search field, nothing changes. Seems to be a complete no-op.

Any ideas?

Oh, and slightly OT: is there some kind of reference to IB where I can look up what things like "display name" mean?

TIA,
Thomas
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to