// // NSMenu+DeepSearch.m // UKSyntaxColoredDocument // // Created by Uli Kusterer on Tue May 18 2004. // Copyright (c) 2004 M. Uli Kusterer. All rights reserved. // // ----------------------------------------------------------------------------- // Headers: // ----------------------------------------------------------------------------- #import "NSMenu+DeepSearch.h" // ----------------------------------------------------------------------------- // findItemWithTarget:andAction: // Calls indexOfItemWithTarget:andAction: on the menu, and if it doesn't // find an item, calls itself recursively on the submenus of all items // in the specified menu. // // REVISIONS: // 2004-05-18 witness Created. // ----------------------------------------------------------------------------- // Look in this menu: // Return the item we found in this menu. // If not found, search our items' submenus: // Recurse deeper. // Found, exit & return item from submenu. } } // Nothing found? Report failure: |