• 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
Search on Core data Table issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search on Core data Table issue?


  • Subject: Search on Core data Table issue?
  • From: Damien Cooke <email@hidden>
  • Date: Wed, 21 Oct 2009 16:26:46 +1030

Hi All,
Not sure if this is the right place (I am sure someone will let me know if it is not) I have a iPhone application that has a UITable view that is backed by core data. I want to perform a reducing search so that only the items starting with the characters entered into the search bar are shown. This is normally done with delegate - (void) searchBar:(UISearchBar *)searchBar textDidChange:(NSString *) searchText no problem. I am a little confused as I am new to Core Data how to do this. One of the big problems as I see it is going to be updating the interface to let it know what to present. I assume an alternative NSFetchedResultsController needs to be sent to the UITableView.


So here are my issues:
1) I assume I need to create a NSFetchedResultsController with only the correct items in it then tell the UITableView to use this as the dataSource and reload the table?
2) is there a better way than executing a full sorted fetch and removing those objects that do not conform. ie is there a way of doing a select where type fetch?


Thanks in advance and sorry if this is a dumb question.

Regards
Damien




_______________________________________________

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: Search on Core data Table issue?
      • From: Matthew Lindfield Seager <email@hidden>
  • Prev by Date: Core data design related question
  • Next by Date: NSTokenField with both non-editable and editable tokens
  • Previous by thread: Re: Core data design related question
  • Next by thread: Re: Search on Core data Table issue?
  • Index(es):
    • Date
    • Thread