• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSearchfield help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSSearchfield help
      • From: Lorenzo Thurman <email@hidden>
References: 
 >NSSearchfield help (From: email@hidden)

  • Prev by Date: CocoaHeads-NYC meeting tonight
  • Next by Date: [iOS] Strange behavior of NSFetchedResultsController
  • Previous by thread: NSSearchfield help
  • Next by thread: Re: NSSearchfield help
  • Index(es):
    • Date
    • Thread