ftp.nice.ch/pub/next/developer/resources/classes/FindManager.README

This is the README for FindManager.s.tar.gz [Download] [Browse] [Up]

Find Manager

copyright: NOT! Feel free to use any of the source to Find Manager.

David Holscher
Box #727
Rose-Hulman Institute of Technology
Terre Haute, IN 47803 

e-mail: holschdm@next-work.rose-hulman.edu

Just what we've all been waiting for. The folks at NeXT we kind enough to provide us with a generic spelling checker built into all of the Text objects, but they left out the all usefull Find Panel. I've tried to alleviate some of the problem here by writing a Find Manager which is a subclass of Object. Using the Find Manager gets you a find interface almost exactly like found in the Edit application. I've used a slightly modified GNU regular expression matching routine to match regular expressions. Unfortunalty I can't get it to match \n correctly or \t. This is somewhat disturbing, but everything else works as in Edit. I've also included the Line and Character range panel like found in Edit.

Putting this object into your application is fairly simple. Just add the FindManager.[hm], regex.[hc], and FindManager.nib files to your project. Drag the FindManager.h file into your .h suitcase and instantiate it. Drag the find sub-menu item into your main menu (probably under Edit). Enable all of the menu items and begin connecting them to the proper methods in the FindManager instance. If you want to use the Line Range you need to add another menu item and connect it to the orderFrontCountPanel: method. The FindTester.nib file provides an example of how to hook up the object.

Once set up the Find Manager will work with an Text object or any subclass of Text that is the current first responder.

One more thing - you should be able to get at the instance you have created by calling [FindManager new] at any time. You should only be able to instantiate one Find Manager.

If you have any questions, comments, wants, or gripes feel free to send them to me e-mail.
	

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.