nomothetis
By: a guest | Jul 2nd, 2008 | Syntax:
Objective C | Size: 1.27 KB | Hits: 375 | Expires: Never
/*
* This a the header file for whose implementation is at
* http://pastebin.com/m27607663.
*/
#import <Cocoa/Cocoa.h>
/*
* The toolbar delegate. This delegate modifies the default behavior of
* NSToolbar as follows:
*
* 1. It adds a search item to the list of available items.
* 2. It sets up an NSToolbarFlexibleSpaceItem and the custom search item as
* the default items in the toolbar. This will ensure that the search
* item is flushed right on the toolbar.
*/
@interface ITToolbarDelegate
: NSObject {
/*
* The view containing the toolbar item; custom items contain a separate
* view that must be created in Interface Builder and linked to an instance
* of this delegate to be properly loaded.
*/
IBOutlet
NSView * searchToolbarItemView;
}
/*
* See documentation in NSToolbar - delegate methods.
*/
/*
* See documentation in NSToolbar - delegate methods.
*/
/*
* See documentation in NSToolbar - delegate methods.
*/
itemForItemIdentifier
:(NSString *)itemIdentifier
willBeInsertedIntoToolbar:(BOOL)flag;
@end