On Jul 5, 2009, at 4:00 PM, Brian Stevens wrote: > > On Jul 5, 2009, at 2:33 PM, Brian Heibert wrote: > >> Where can I find a non-nib example of searching for something in a >> appearance edit field >> And highlight the text that is found? > > Apologies to bw for abusing his original code. The highlighting and > finding are separate in that code but were collapsed for the demo. fn CFStringCreateCopy follows the 'create' rule so there is a release that needs to be done here by the caller fn EUTCFind. The code as written assumes EUTCFind will be called multiple times ( or used in conjunction with a 'Find Again' functions to find multiple occurrences ) where each subsequent call releases the CFString of the previous call. The code will need to be adapted and is not recommended as a plug-in solution but only a method. Brian S.