File: programming/cocoa/UKSyntaxColoredTextDocument.zip/UKSyntaxColoredTextDocument/NSMenu DeepSearch.h


//
//  NSMenu+DeepSearch.h
//  UKSyntaxColoredDocument
//
//  Created by Uli Kusterer on Tue May 18 2004.
//  Copyright (c) 2004 M. Uli Kusterer. All rights reserved.
//
 
/*
	This category adds a method to NSMenu that lets you perform a deep search
	in a menu for an item with a particular target and action. This is e.g.
	very handy when you're looking for an item and don't know what menu it is
	in. Simply pass [NSApp mainMenu] as the menu, and get back the menu item,
	which knows what menu it belongs to.
*/
 
// -----------------------------------------------------------------------------
//	Headers:
// -----------------------------------------------------------------------------
 
#import <Foundation/Foundation.h>
 
 
// -----------------------------------------------------------------------------
//	Interface:
// -----------------------------------------------------------------------------
// Perform a deep search on a menu and its submenus: (returns NIL if the item couldn't be found)
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.