Yes, this should be possible, have a look at the NSTextFinder class and especially at the NSTextFinderClient protocol.
Tim Am 18.06.2012 um 20:03 schrieb ecir hana: > Hello, > > Since Lion NSTextView has this very nice feature - when searching for a > text as a user it also highlights all the occurrences of given search > string. > > Is it possible to programmatically "force" triggering the highlighting? In > other words, is it possible to re-use the functionality to highlight some > string, without actually using the findbar? > > Have a nice day, > > Ecir Hana > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/tim%40timschroeder.net > > This email sent to t...@timschroeder.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com