public
Description: A Cocoa / Objective-C application that uses the Bonjour service to share contact details between macs on the same network.
Homepage:
Clone URL: git://github.com/Abizern/bonsoir.git
bonsoir / BonsoirToolbar.h
100644 35 lines (25 sloc) 0.79 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// BonsoirToolbar.h
// Bonsoir
//
// Created by R. Tyler Ballance on 8/26/06.
//
 
#import <Cocoa/Cocoa.h>
 
 
@interface BonsoirToolbar : NSObject {
IBOutlet NSWindow *window;
 
    NSToolbar *toolbar;
    NSMutableDictionary *items; // all items that are allowed to be in the toolbar
}
 
- (void)awakeFromNib;
- (void)dealloc;
 
// toolbar datasource
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar;
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar;
- (int)count;
 
// menu actions
- (IBAction)customize:(id)sender;
- (IBAction)showhide:(id)sender;
 
// user actions
- (void)toolbaritemclicked:(NSToolbarItem*)item;
 
@end