PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h

http://rtm2cocoa.googlecode.com/
C++ Header | 36 lines | 16 code | 8 blank | 12 comment | 0 complexity | deeca08404d06df016f7e01b4a5518a1 MD5 | raw file
 1//
 2//  BWSelectableToolbar.h
 3//  BWToolkit
 4//
 5//  Created by Brandon Walkin (www.brandonwalkin.com)
 6//  All code is provided under the New BSD license.
 7//
 8
 9#import <Cocoa/Cocoa.h>
10
11@class BWSelectableToolbarHelper;
12
13// Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object
14// for the key @"BWClickedItem" in the supplied userInfo dictionary.
15extern NSString * const BWSelectableToolbarItemClickedNotification;
16
17@interface BWSelectableToolbar : NSToolbar 
18{
19	BWSelectableToolbarHelper *helper;
20	NSMutableArray *itemIdentifiers;
21	NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier;
22	BOOL inIB;
23	
24	// For the IB inspector
25	int selectedIndex;
26	BOOL isPreferencesToolbar;
27}
28
29// Call one of these methods to set the active tab. 
30- (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab.
31- (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected.
32
33// Programmatically disable or enable a toolbar item. 
34- (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier;
35
36@end