Searching Book X and Getting Snippets
Searching Book X and Getting Snippets
- Subject: Searching Book X and Getting Snippets
- From: David Yamartino <email@hidden>
- Date: Sat, 24 Jan 2009 16:45:12 +1000
Hi All,
Thanks for your help with my original query about NSString
rangeOfCharacterFromSet:options. From the responses, I see that there are many ways to approach my simple-search project. So I'm taking a step back and asking a broader question: Here's what I'm trying to do:
A user inputs a search term (like "fruits and nuts"), clicks the search button, and the app searches Book X (a .txt file on my computer) and returns snippets with the search term highlighted:
- The table was set with fruits and nuts, crackers and cheese.
- Although fruits provide fiber and carbohydrates, most of the protein in this menu will come from the nuts.
Can anyone point me to some working example code that would do this or get close to this? I'm thinking that a program like this shouldn't be more than a 250 lines of code? (but I'm only guessing - I've only been "programming" for 13 days).
In the meantime I'm trying to implement the other suggestions I received, but as you can imagine I'm really weak at understanding syntax, etc. I can't get the example program which is provided at the end of "Search Kit Concepts" (by Apple) to work yet.
I did find an episode of Late Night Cocoa (14) which deals with Search Kit, but the link to the example code is, unfortunately, dead. I've requested a live link and am patiently waiting . . .
Thanks so much for your help,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden