Re: NSSearchfield help
Re: NSSearchfield help
- Subject: Re: NSSearchfield help
- From: Dave Reed <email@hidden>
- Date: Thu, 10 Feb 2011 09:55:20 -0500
On Feb 9, 2011, at 9:44 PM, email@hidden wrote:
> I have a NSTableView populated by an NSArrayController. Above the table, I have an NSToolbar, to which I would like add the ability to search. I have found a couple of examples of implementing search using an NSSearchField, but the two that I have found both display the results in a dropdown attached to the NSSearchField. I would like the table to display the results live as the user types characters. And when the search field is cleared, the table should repopulate with the original entries. First, is this even possible? I can't think of an application that even does this. If so, is there any sample code that demonstrates this?
> Thanks
Yes, it's possible. See the relevant examples here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
I think the example there requires you to press <return> in the search field, but it's possible to do with requiring that.
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden