Created
February 8, 2010 13:56
-
-
Save Kentzo/298152 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSDocumentController* documentContr = [NSDocumentController sharedDocumentController]; | |
| NSWindowController* windowContr = [[[documentContr documents] objectAtIndex:0] browserWindowController]; | |
| NSWindow* window = [windowContr window]; | |
| NSToolbar* toolbar = [window toolbar]; | |
| [toolbar insertItemWithItemIdentifier:[[SWMPluginController sharedInstance] toolbarButtonIdentifier] | |
| atIndex:[[SWMPluginController sharedInstance] toolbarButtonIndex]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment