Skip to content

Instantly share code, notes, and snippets.

@davidcann
Created July 24, 2010 05:22
Show Gist options
  • Save davidcann/488430 to your computer and use it in GitHub Desktop.
Save davidcann/488430 to your computer and use it in GitHub Desktop.
/*
* DCToolbar.j
* Flllow
*
* Created by Cann on May 24, 2010.
* Copyright 2010, Cann All rights reserved.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPToolbar.j>
@import <AppKit/CPToolbarItem.j>
@implementation DCToolbar : CPToolbar {
}
- (CPView)_toolbarView {
if (!_toolbarView) {
_toolbarView = [[_CPToolbarView alloc] initWithFrame:CPRectMake(0.0, 0.0, 1200.0, 41.0)];
[_toolbarView setToolbar:self];
[_toolbarView setAutoresizingMask:CPViewWidthSizable];
[_toolbarView reloadToolbarItems];
}
return _toolbarView;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment