BOOL takeStupidRoad = NO (search app design question)

2009-03-21 Thread David Yamartino
Hi All, I have a general design question. I'm going through the latest Hillegass and Kochan programming books for the purpose of writing a simple search app. I think I've figured out a way to do this, but having no experience in programming, I have no idea if my approach is good or bad. I'd rather

Re: BOOL takeStupidRoad = NO (search app design question)

2009-03-23 Thread Izidor Jerebic
Hello, David, there is nothing wrong with your aproach. For this amount of data and for its first version the program should be ok. However, if you find out later that your search needs to be faster/ consume less memory/work with more files, you will need to optimize the application. Not

Re: BOOL takeStupidRoad = NO (search app design question)

2009-03-23 Thread David Yamartino
Thanks, Izidor, for these suggestions. Regarding the Spotlight API, several people have suggested this, however my understanding is that Spotlight indexes at the file level - that is, it knows that the word "perpendicular" is contained in File X, File Y, and File Z. However, I need to know the exa

Re: BOOL takeStupidRoad = NO (search app design question)

2009-03-23 Thread Scott Ribe
> Then again, I guess I could use Spotlight to locate the proper files, and > then focus on them for finding the position of the words and then getting > the words around them for the snippets, etc. Exactly. However, for the amount of data you're talking about, just loading it up & searching it is

Re: BOOL takeStupidRoad = NO (search app design question)

2009-03-23 Thread David Yamartino
Yes, thank you. So that's how I'll proceed. David -- On Tue, Mar 24, 2009 at 3:18 AM, Scott Ribe wrote: > > Then again, I guess I could use Spotlight to locate the proper files, and > > then focus on them for fin