Public feed #376447

Something

public text v1 · immutable
Raw Edit
·published 2007-03-01 01:02 UTC
rendered paste body
#define TOOLBAR_IDENTIFIER @"My Toolbar Identifier"

- (void) awakeFromNib;
{   
    [self _initToolbar];
}

- (void) _initToolbar
{
    NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier:TOOLBAR_IDENTIFIER] autorelease];
    [toolbar setAllowsUserCustomization:YES];
    [toolbar setAutosavesConfiguration:YES];
    [toolbar setDisplayMode: NSToolbarDisplayModeIconOnly];
    [toolbar setDelegate: self];
    [self->window setToolbar:toolbar];
}