root/Trunk/AIUtilities.framework/Versions/A/Headers/AIFlexibleToolbarItem.h @ 2

Revision 2, 1.6 KB (checked in by jon, 16 years ago)

Initial commit of skeletal project.

Line 
1//
2//  AIFlexibleToolbarItem.h
3//  AIUtilities.framework
4//
5//  Created by Evan Schoenberg on 10/16/04.
6//  Copyright (c) 2004-2005 The Adium Team. All rights reserved.
7//
8
9@class AIFlexibleToolbarItem;
10
11/*!
12 * @class AIFlexibleToolbarItem
13 * @brief Toolbar item with a validation delegate
14 *
15 * Normally, an NSToolbarItem does not validate if it has a custom view. <tt>AIFlexibleToolbarItem</tt> sends its delegate validate methods regardless of its configuration, allowing validation when using custom views.  Adium uses this, for example, to change the image on a toolbar button when conditions change in its window.
16 *
17 * @see <tt><a href="category_n_s_object(_e_s_flexible_toolbar_item_delegate).html">NSObject(AIFlexibleToolbarItemDelegate)</a></tt>
18 */
19@interface AIFlexibleToolbarItem : NSToolbarItem {
20        id      validationDelegate;
21}
22
23/*!
24 * @brief Set the validation delegate
25 *
26 * Set the validation delegate, which must implement the methods in <tt>AIFlexibleToolbarItemDelegate</tt> and will receive validation messages.
27 * @param inDelegate The delegate
28 */
29- (void)setValidationDelegate:(id)inDelegate;
30
31@end
32
33/*!
34 * @protocol AIFlexibleToolbarItemDelegate
35 * @brief Required protocol for an AIFlexibleToolbarItem's validation delegate
36 *
37 * The delegate is sent - (void)validateFlexibleToolbarItem:(AIFlexibleToolbarItem *)toolbarItem, which must be efficient
38 */
39@protocol AIFlexibleToolbarItemDelegate
40/*!
41 * @brief Sent when the toolbar item is validated
42 *
43 * @param toolbarItem The toolbar item
44 */
45- (void)validateFlexibleToolbarItem:(AIFlexibleToolbarItem *)toolbarItem;
46@end
47
Note: See TracBrowser for help on using the browser.