├── deps ├── Sparkle.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── Sparkle │ │ │ ├── Resources │ │ │ ├── fr_CA.lproj │ │ │ ├── fr.lproj │ │ │ │ ├── fr.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── relaunch │ │ │ ├── de.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── en.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── es.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── it.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── nl.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── ru.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── sv.lproj │ │ │ │ ├── Sparkle.strings │ │ │ │ ├── SUUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ ├── SUAutomaticUpdateAlert.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ │ └── SUUpdatePermissionPrompt.nib │ │ │ │ │ ├── keyedobjects.nib │ │ │ │ │ └── info.nib │ │ │ ├── SUStatus.nib │ │ │ │ ├── keyedobjects.nib │ │ │ │ └── info.nib │ │ │ ├── Info.plist │ │ │ └── License.txt │ │ │ └── Headers │ │ │ ├── Sparkle.h │ │ │ ├── SUAppcast.h │ │ │ └── SUVersionComparisonProtocol.h │ ├── Headers │ ├── Resources │ └── Sparkle └── bwtoolkit │ ├── Library-ShowFonts.tif │ ├── TokenFieldArrow.tif │ ├── ToolbarItemFonts.tiff │ ├── GradientWellPattern.tif │ ├── Library-CustomView.tif │ ├── Library-GradientBox.tif │ ├── Library-ShowColors.tif │ ├── Library-TokenField.tif │ ├── ToolbarItemColors.tiff │ ├── ButtonBarPullDownArrow.pdf │ ├── Library-AnchoredButton.tif │ ├── Library-InsetTextField.tif │ ├── Library-TexturedSlider.tif │ ├── Library-ToolbarItem.tiff │ ├── TexturedSliderThumbN.tiff │ ├── TexturedSliderThumbP.tiff │ ├── TransparentPopUpFillN.tiff │ ├── TransparentPopUpFillP.tiff │ ├── TransparentPopUpLeftN.tiff │ ├── TransparentPopUpLeftP.tiff │ ├── .hgignore │ ├── Inspector-ButtonBarMode1.tif │ ├── Inspector-ButtonBarMode2.tif │ ├── Inspector-ButtonBarMode3.tif │ ├── Library-AddMiniBottomBar.tif │ ├── Library-RemoveBottomBar.tif │ ├── Library-SheetController.tif │ ├── Library-StyledTextField.tif │ ├── Library-TransparentLabel.tif │ ├── TexturedSliderPhotoLarge.tif │ ├── TexturedSliderPhotoSmall.tif │ ├── TexturedSliderTrackFill.tiff │ ├── TexturedSliderTrackLeft.tiff │ ├── TransparentButtonFillN.tiff │ ├── TransparentButtonFillP.tiff │ ├── TransparentButtonLeftN.tiff │ ├── TransparentButtonLeftP.tiff │ ├── TransparentButtonRightN.tiff │ ├── TransparentButtonRightP.tiff │ ├── TransparentCheckboxOffN.tiff │ ├── TransparentCheckboxOffP.tiff │ ├── TransparentCheckboxOnN.tiff │ ├── TransparentCheckboxOnP.tiff │ ├── TransparentPopUpRightN.tiff │ ├── TransparentPopUpRightP.tiff │ ├── TransparentSliderThumbN.tiff │ ├── TransparentSliderThumbP.tiff │ ├── English.lproj │ ├── InfoPlist.strings │ └── BWToolkitLibrary.nib │ │ └── keyedobjects.nib │ ├── Library-AddRegularBottomBar.tif │ ├── Library-AddSheetBottomBar.tif │ ├── Library-AddSmallBottomBar.tif │ ├── Library-AnchoredButtonBar.tif │ ├── Library-AnchoredPopUpButton.tif │ ├── Library-GradientSplitView.tif │ ├── Library-HorizontalSplitView.tif │ ├── Library-SelectableToolbar.tif │ ├── Library-TexturedAddButton.tif │ ├── Library-TransparentButton.tif │ ├── Library-TransparentCheckbox.tif │ ├── Library-TransparentSlider.tif │ ├── Library-TransparentTextView.tif │ ├── Library-VerticalSplitView.tif │ ├── TexturedSliderSpeakerLoud.png │ ├── TexturedSliderSpeakerQuiet.png │ ├── TexturedSliderTrackRight.tiff │ ├── TokenFieldHighlightedArrow.tif │ ├── TransparentScrollerKnobLeft.tif │ ├── TransparentScrollerKnobTop.tif │ ├── TransparentScrollerSlotLeft.tif │ ├── TransparentScrollerSlotTop.tif │ ├── TransparentSliderTrackFill.tiff │ ├── TransparentSliderTrackLeft.tiff │ ├── GradientSplitViewDimpleBitmap.tif │ ├── GradientSplitViewDimpleVector.pdf │ ├── Library-TexturedRemoveButton.tif │ ├── Library-TransparentTableView.tif │ ├── TransparentScrollerKnobBottom.tif │ ├── TransparentScrollerKnobRight.tif │ ├── TransparentScrollerSlotBottom.tif │ ├── TransparentScrollerSlotRight.tif │ ├── TransparentSliderTrackRight.tiff │ ├── Inspector-ButtonBarMode1Pressed.tif │ ├── Inspector-ButtonBarMode2Pressed.tif │ ├── Inspector-ButtonBarMode3Pressed.tif │ ├── Inspector-ButtonBarModeSelection.tif │ ├── Inspector-SplitViewArrowBlueLeft.tif │ ├── Inspector-SplitViewArrowRedFill.tif │ ├── Inspector-SplitViewArrowRedLeft.tif │ ├── Inspector-SplitViewArrowRedRight.tif │ ├── Inspector-SplitViewBackground.tiff │ ├── Library-TransparentCheckboxCell.tif │ ├── Library-TransparentPopUpButton.tif │ ├── TransparentPopUpPullDownRightN.tif │ ├── TransparentPopUpPullDownRightP.tif │ ├── TransparentSliderTriangleThumbN.tiff │ ├── TransparentSliderTriangleThumbP.tiff │ ├── BWToolkit.xcodeproj │ └── TemplateIcon.icns │ ├── Inspector-SplitViewArrowBlueRight.tif │ ├── BWBottomBarLibrary.nib │ └── keyedobjects.nib │ ├── BWButtonBarLibrary.nib │ └── keyedobjects.nib │ ├── BWControllersLibrary.nib │ └── keyedobjects.nib │ ├── BWSplitViewLibrary.nib │ └── keyedobjects.nib │ ├── TransparentScrollerKnobHorizontalFill.tif │ ├── TransparentScrollerKnobVerticalFill.tif │ ├── TransparentScrollerSlotHorizontalFill.tif │ ├── TransparentScrollerSlotVerticalFill.tif │ ├── BWToolbarItemsLibrary.nib │ └── keyedobjects.nib │ ├── BWTexturedSliderInspector.nib │ └── keyedobjects.nib │ ├── BWSelectableToolbarInspector.nib │ └── keyedobjects.nib │ ├── BWTransparentControlsLibrary.nib │ └── keyedobjects.nib │ ├── .hg_archival.txt │ ├── BWSplitView.classdescription │ ├── BWToolkit_Prefix.pch │ ├── BWTokenField.m │ ├── BWTransparentButton.m │ ├── BWTransparentSlider.m │ ├── BWTokenField.h │ ├── BWTransparentCheckbox.m │ ├── BWAddMiniBottomBar.h │ ├── BWCustomView.classdescription │ ├── BWInsetTextField.h │ ├── BWRemoveBottomBar.h │ ├── BWToolkit.h │ ├── BWAddSheetBottomBar.h │ ├── BWAddSmallBottomBar.h │ ├── BWGradientBox.classdescription │ ├── BWTokenField.classdescription │ ├── BWTokenFieldCell.h │ ├── BWTransparentButton.h │ ├── BWTransparentPopUpButton.m │ ├── BWTransparentSlider.h │ ├── BWAddRegularBottomBar.h │ ├── BWAnchoredButton.classdescription │ ├── BWRemoveBottomBar.classdescription │ ├── BWTexturedSlider.classdescription │ ├── BWToolbarItem.classdescription │ ├── BWTransparentCheckbox.h │ ├── BWAddMiniBottomBar.classdescription │ ├── BWAddSheetBottomBar.classdescription │ ├── BWAddSmallBottomBar.classdescription │ ├── BWAnchoredButtonBar.classdescription │ ├── BWAnchoredButtonCell.h │ ├── BWHyperlinkButton.classdescription │ ├── BWHyperlinkButtonCell.h │ ├── BWInsetTextField.classdescription │ ├── BWStyledTextField.classdescription │ ├── BWTransparentButton.classdescription │ ├── BWTransparentSlider.classdescription │ ├── BWAddRegularBottomBar.classdescription │ ├── BWSelectableToolbar.classdescription │ ├── BWTokenFieldCell.classdescription │ ├── BWToolbarItem.h │ ├── BWToolbarShowFontsItem.h │ ├── BWTransparentCheckbox.classdescription │ ├── BWTransparentScrollView.h │ ├── BWTransparentTableView.h │ ├── NSString+BWAdditions.h │ ├── BWAnchoredPopUpButton.classdescription │ ├── BWHyperlinkButtonCell.classdescription │ ├── BWSheetController.classdescription │ ├── BWTexturedSliderCell.classdescription │ ├── BWToolbarShowColorsItem.h │ ├── BWTransparentPopUpButton.h │ ├── BWTransparentScroller.classdescription │ ├── BWTransparentTableView.classdescription │ ├── BWStyledTextFieldCell.classdescription │ ├── BWToolbarShowColorsItem.classdescription │ ├── BWToolbarShowFontsItem.classdescription │ ├── BWTransparentButtonCell.classdescription │ ├── BWTransparentPopUpButton.classdescription │ ├── BWTransparentScrollView.classdescription │ ├── BWTransparentScroller.h │ ├── BWTransparentSliderCell.classdescription │ ├── BWUnanchoredButton.h │ ├── BWUnanchoredButtonContainer.h │ ├── NSApplication+BWAdditions.h │ ├── BWAnchoredPopUpButtonCell.h │ ├── BWTexturedSliderInspector.h │ ├── BWTransparentCheckboxCell.classdescription │ ├── BWTransparentTextFieldCell.h │ ├── BWTransparentPopUpButtonCell.h │ ├── BWTransparentSliderCell.h │ ├── BWTransparentTableViewCell.classdescription │ ├── BWTransparentTextFieldCell.classdescription │ ├── BWToolbarItemInspector.h │ ├── BWTransparentPopUpButtonCell.classdescription │ ├── BWCustomView.h │ ├── BWSelectableToolbarInspector.h │ ├── BWHyperlinkButtonInspector.h │ ├── BWTransparentButtonCell.h │ ├── BWTransparentTableViewCell.h │ ├── BWRemoveBottomBar.m │ ├── BWTokenAttachmentCell.h │ ├── BWTransparentCheckboxCell.h │ ├── BWUnanchoredButtonCell.h │ ├── BWSplitViewInspectorAutosizingButtonCell.h │ ├── BWHyperlinkButton.h │ ├── NSWindow+BWAdditions.h │ ├── BWTexturedSliderCell.h │ ├── NSWindow-NSTimeMachineSupport.h │ ├── NSView+BWAdditions.h │ ├── BWGradientWell.h │ ├── NSEvent+BWAdditions.h │ ├── BWGradientWellColorWell.h │ ├── BWAnchoredButton.h │ ├── BWHyperlinkButtonInspector.m │ ├── BWAnchoredPopUpButton.h │ ├── NSTokenAttachment.h │ ├── BWInsetTextField.m │ ├── BWToolbarItemInspector.m │ ├── BWTexturedSliderInspector.m │ ├── BWUnanchoredButtonContainer.m │ ├── BWSplitViewInspectorAutosizingView.h │ ├── NSString+BWAdditions.m │ ├── BWStyledTextFieldInspector.h │ ├── BWSelectableToolbarInspector.m │ ├── NSApplication+BWAdditions.m │ ├── NSCustomView.h │ ├── NSImage+BWAdditions.h │ ├── BWTexturedSlider.h │ ├── BWTransparentScrollViewIntegration.m │ ├── NSColor+BWAdditions.h │ ├── BWStyledTextFieldCell.h │ ├── BWSheetControllerIntegration.m │ ├── BWTransparentScrollView.m │ ├── BWAnchoredButtonBarInspector.h │ ├── BWTransparentSliderIntegration.m │ ├── BWToolkit.m │ ├── BWTransparentButtonIntegration.m │ ├── BWTransparentCheckboxIntegration.m │ ├── BWTransparentPopUpButtonIntegration.m │ ├── BWGradientBox.h │ ├── BWToolkitFramework-Info.plist │ ├── BWAnchoredButtonBar.h │ ├── BWStyledTextField.h │ ├── BWTransparentTableViewIntegration.m │ ├── BWGradientBoxInspector.h │ ├── BWSelectableToolbarHelper.h │ ├── BWTokenFieldCell.m │ ├── BWToolbarItemIntegration.m │ ├── BWUnanchoredButtonIntegration.m │ ├── BWHyperlinkButtonIntegration.m │ ├── BWUnanchoredButton.m │ ├── BWAnchoredButtonIntegration.m │ ├── BWAnchoredPopUpButtonIntegration.m │ ├── Info.plist │ ├── BWAnchoredButton.m │ ├── BWAnchoredPopUpButton.m │ ├── BWStyledTextFieldIntegration.m │ ├── BWGradientWellColorWell.m │ ├── BWHyperlinkButtonCell.m │ ├── BWToolbarShowFontsItem.m │ ├── BWToolbarShowColorsItem.m │ └── BWUnanchoredButtonContainerIntegration.m ├── admin ├── freenode6358dg.ver └── git-config-deps-with-RW-urls.sh ├── src ├── prefix.pch ├── kexceptions.h ├── KASTOutlineView.h ├── KPopUpContentView.h ├── KScrollView.h ├── KASTOutlineView.m ├── kexceptions.m ├── KHTTPURLHandler.h ├── KNodeThread.h ├── shared-dispatch-queues.h ├── KClipView.h ├── KWindowBackgroundCoverView.h ├── NSString-editdistance.h ├── KKodURLHandler.h ├── NSCharacterSet-kod.h ├── NSString-intern.h ├── NSView-kod.h ├── main.m ├── NSMutableArray-kod.h ├── HUnorderedMap.cc ├── KMachService-NSInvocation.h ├── KBrowser.h ├── KFileTextFieldCell.h ├── NSString-data.h ├── KModeTextFieldDecoration.h ├── KFileURLHandler.h ├── KTerminalUsageWindowController.h ├── KTextStorage.h ├── shared-dispatch-queues.c ├── CIImage-kod.h ├── KASTViewerWindowController.h ├── NSString-cpp.h ├── KMachService.h ├── KScroller.h ├── KSudo.h ├── NSImage-kod.h ├── KWindowBackgroundCoverView.m ├── KPopUpContentView.m ├── KCrashReportCollector.h ├── KSplitView.h ├── KAnimation.h ├── KMachServiceProtocol.h ├── NSMutableArray-kod.m ├── NSError+KAdditions.h ├── KStatusBarView.h ├── ASTNode.mm ├── KFileOutlineView.h ├── KStatusBarController.h ├── KPopUp.h ├── KASTViewerController.h ├── AST.h ├── NSData-kod.h ├── KASTViewerWindowController.mm ├── core │ └── sudden_termination.h ├── KClipView.m ├── hdispatch.m ├── KFileTreeController.h ├── NSView-kod.mm ├── KFileTreeNodeData.h ├── hobjc.h ├── KAppDelegate.h ├── KURLHandler.mm ├── KURLHandler.h ├── KTextField.h ├── KLocationBarController.h ├── NSCharacterSet-kod.m └── NSString-intern.m ├── website └── public │ ├── breakpad │ ├── index.php │ └── stackwalk.php │ ├── crashreport │ └── index.php │ ├── favicon.ico │ ├── icon-256.png │ ├── line-numbers.png │ ├── screenshot.png │ ├── config.php.in │ ├── support │ └── index.php │ ├── download │ └── index.php │ └── signup-for-beta.php ├── ideas ├── bottom-bar.psd ├── split-view-column-wrapping.psd ├── location-bar-as-command-input.psd └── scrollbar-hover-for-line-info.psd ├── resources ├── icon │ ├── kod.icns │ ├── kod-icon.ai │ ├── kod-icon-16.png │ ├── kod-icon-16.psd │ ├── kod-icon-32.png │ └── kod-icon-512.png ├── sidebar-open.png ├── sidebar-closed.png ├── fonts │ ├── mplus-1m-bold.ttf │ ├── mplus-1m-thin.ttf │ ├── mplus-1m-light.ttf │ ├── mplus-1m-medium.ttf │ └── mplus-1m-regular.ttf ├── sidebar-toggle-button.psd ├── test.c └── dsa_pub.pem ├── pull.sh ├── xcconfig ├── debug.xcconfig ├── base-local.xcconfig.in └── release.xcconfig ├── update.sh ├── .gitignore ├── .gitmodules └── AUTHORS.md /deps/Sparkle.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /admin/freenode6358dg.ver: -------------------------------------------------------------------------------- 1 | freenode6358dg.ver 2 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /deps/Sparkle.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /deps/Sparkle.framework/Sparkle: -------------------------------------------------------------------------------- 1 | Versions/Current/Sparkle -------------------------------------------------------------------------------- /src/prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | -------------------------------------------------------------------------------- /website/public/breakpad/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /website/public/crashreport/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ideas/bottom-bar.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/ideas/bottom-bar.psd -------------------------------------------------------------------------------- /resources/icon/kod.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod.icns -------------------------------------------------------------------------------- /resources/icon/kod-icon.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod-icon.ai -------------------------------------------------------------------------------- /resources/sidebar-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/sidebar-open.png -------------------------------------------------------------------------------- /website/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/website/public/favicon.ico -------------------------------------------------------------------------------- /resources/sidebar-closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/sidebar-closed.png -------------------------------------------------------------------------------- /website/public/icon-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/website/public/icon-256.png -------------------------------------------------------------------------------- /pull.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "This file has been deprecated -- please use $(dirname "$0")/update.sh instead" >&2 3 | -------------------------------------------------------------------------------- /resources/icon/kod-icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod-icon-16.png -------------------------------------------------------------------------------- /resources/icon/kod-icon-16.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod-icon-16.psd -------------------------------------------------------------------------------- /resources/icon/kod-icon-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod-icon-32.png -------------------------------------------------------------------------------- /resources/icon/kod-icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/icon/kod-icon-512.png -------------------------------------------------------------------------------- /website/public/line-numbers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/website/public/line-numbers.png -------------------------------------------------------------------------------- /website/public/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/website/public/screenshot.png -------------------------------------------------------------------------------- /resources/fonts/mplus-1m-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/fonts/mplus-1m-bold.ttf -------------------------------------------------------------------------------- /resources/fonts/mplus-1m-thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/fonts/mplus-1m-thin.ttf -------------------------------------------------------------------------------- /website/public/config.php.in: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-ShowFonts.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-ShowFonts.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TokenFieldArrow.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TokenFieldArrow.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/ToolbarItemFonts.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/ToolbarItemFonts.tiff -------------------------------------------------------------------------------- /ideas/split-view-column-wrapping.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/ideas/split-view-column-wrapping.psd -------------------------------------------------------------------------------- /resources/fonts/mplus-1m-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/fonts/mplus-1m-light.ttf -------------------------------------------------------------------------------- /resources/fonts/mplus-1m-medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/fonts/mplus-1m-medium.ttf -------------------------------------------------------------------------------- /resources/fonts/mplus-1m-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/fonts/mplus-1m-regular.ttf -------------------------------------------------------------------------------- /resources/sidebar-toggle-button.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/resources/sidebar-toggle-button.psd -------------------------------------------------------------------------------- /deps/bwtoolkit/GradientWellPattern.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/GradientWellPattern.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-CustomView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-CustomView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-GradientBox.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-GradientBox.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-ShowColors.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-ShowColors.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TokenField.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TokenField.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/ToolbarItemColors.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/ToolbarItemColors.tiff -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Sparkle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Sparkle -------------------------------------------------------------------------------- /deps/bwtoolkit/ButtonBarPullDownArrow.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/ButtonBarPullDownArrow.pdf -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AnchoredButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AnchoredButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-InsetTextField.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-InsetTextField.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TexturedSlider.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TexturedSlider.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-ToolbarItem.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-ToolbarItem.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderThumbN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderThumbP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpFillN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpFillN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpFillP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpFillP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpLeftN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpLeftN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpLeftP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpLeftP.tiff -------------------------------------------------------------------------------- /ideas/location-bar-as-command-input.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/ideas/location-bar-as-command-input.psd -------------------------------------------------------------------------------- /ideas/scrollbar-hover-for-line-info.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/ideas/scrollbar-hover-for-line-info.psd -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr_CA.lproj: -------------------------------------------------------------------------------- 1 | /Users/andym/Development/Build Products/Release/Sparkle.framework/Resources/fr.lproj -------------------------------------------------------------------------------- /deps/bwtoolkit/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | 3 | *.pbxuser 4 | *.mode1 5 | *.mode1v3 6 | *~.nib 7 | *~ 8 | *.orig 9 | .DS_Store 10 | -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode1.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode1.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode2.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode2.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode3.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode3.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AddMiniBottomBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AddMiniBottomBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-RemoveBottomBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-RemoveBottomBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-SheetController.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-SheetController.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-StyledTextField.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-StyledTextField.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentLabel.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentLabel.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderPhotoLarge.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderPhotoLarge.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderPhotoSmall.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderPhotoSmall.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderTrackFill.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderTrackFill.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderTrackLeft.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderTrackLeft.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonFillN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonFillN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonFillP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonFillP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonLeftN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonLeftN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonLeftP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonLeftP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonRightN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonRightN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentButtonRightP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentButtonRightP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentCheckboxOffN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentCheckboxOffN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentCheckboxOffP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentCheckboxOffP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentCheckboxOnN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentCheckboxOnN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentCheckboxOnP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentCheckboxOnP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpRightN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpRightN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpRightP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpRightP.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderThumbN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderThumbP.tiff -------------------------------------------------------------------------------- /resources/test.c: -------------------------------------------------------------------------------- 1 | // single line comment 2 | /* multi 3 | * line 4 | * comment */ 5 | void foo(int bar) { 6 | return bar * 7.1; 7 | } 8 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/fr.lproj: -------------------------------------------------------------------------------- 1 | /Users/andym/Development/Build Products/Release/Sparkle.framework/Resources/fr.lproj -------------------------------------------------------------------------------- /deps/bwtoolkit/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AddRegularBottomBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AddRegularBottomBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AddSheetBottomBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AddSheetBottomBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AddSmallBottomBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AddSmallBottomBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AnchoredButtonBar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AnchoredButtonBar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-AnchoredPopUpButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-AnchoredPopUpButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-GradientSplitView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-GradientSplitView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-HorizontalSplitView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-HorizontalSplitView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-SelectableToolbar.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-SelectableToolbar.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TexturedAddButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TexturedAddButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentCheckbox.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentCheckbox.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentSlider.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentSlider.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentTextView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentTextView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-VerticalSplitView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-VerticalSplitView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderSpeakerLoud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderSpeakerLoud.png -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderSpeakerQuiet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderSpeakerQuiet.png -------------------------------------------------------------------------------- /deps/bwtoolkit/TexturedSliderTrackRight.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TexturedSliderTrackRight.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TokenFieldHighlightedArrow.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TokenFieldHighlightedArrow.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobLeft.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobTop.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobTop.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotLeft.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotTop.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotTop.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderTrackFill.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderTrackFill.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderTrackLeft.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderTrackLeft.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/GradientSplitViewDimpleBitmap.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/GradientSplitViewDimpleBitmap.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/GradientSplitViewDimpleVector.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/GradientSplitViewDimpleVector.pdf -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TexturedRemoveButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TexturedRemoveButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentTableView.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentTableView.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobBottom.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobBottom.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobRight.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotBottom.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotBottom.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotRight.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderTrackRight.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderTrackRight.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode1Pressed.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode1Pressed.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode2Pressed.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode2Pressed.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarMode3Pressed.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarMode3Pressed.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-ButtonBarModeSelection.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-ButtonBarModeSelection.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewArrowBlueLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewArrowBlueLeft.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewArrowRedFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewArrowRedFill.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewArrowRedLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewArrowRedLeft.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewArrowRedRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewArrowRedRight.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewBackground.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewBackground.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentCheckboxCell.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentCheckboxCell.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/Library-TransparentPopUpButton.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Library-TransparentPopUpButton.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpPullDownRightN.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpPullDownRightN.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentPopUpPullDownRightP.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentPopUpPullDownRightP.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderTriangleThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderTriangleThumbN.tiff -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentSliderTriangleThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentSliderTriangleThumbP.tiff -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/relaunch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/relaunch -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolkit.xcodeproj/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWToolkit.xcodeproj/TemplateIcon.icns -------------------------------------------------------------------------------- /deps/bwtoolkit/Inspector-SplitViewArrowBlueRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/Inspector-SplitViewArrowBlueRight.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/BWBottomBarLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWBottomBarLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWButtonBarLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWButtonBarLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWControllersLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWControllersLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSplitViewLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWSplitViewLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobHorizontalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobHorizontalFill.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerKnobVerticalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerKnobVerticalFill.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotHorizontalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotHorizontalFill.tif -------------------------------------------------------------------------------- /deps/bwtoolkit/TransparentScrollerSlotVerticalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/TransparentScrollerSlotVerticalFill.tif -------------------------------------------------------------------------------- /website/public/support/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItemsLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWToolbarItemsLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSliderInspector.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWTexturedSliderInspector.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSelectableToolbarInspector.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWSelectableToolbarInspector.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentControlsLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/BWTransparentControlsLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/English.lproj/BWToolkitLibrary.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/bwtoolkit/English.lproj/BWToolkitLibrary.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/de.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/es.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/fr.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/it.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/nl.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/ru.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/sv.lproj/Sparkle.strings -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/bwtoolkit/.hg_archival.txt: -------------------------------------------------------------------------------- 1 | repo: b48f0b7c61dc2fd5cb1d27217ceb146f6858582e 2 | node: 590c12e68e7a9a35efc753ddfa2fa14217eb3da6 3 | branch: default 4 | latesttag: null 5 | latesttagdistance: 114 6 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSplitView.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = 3 | { 4 | "toggleCollapse:" = id; 5 | }; 6 | Outlets = 7 | { 8 | }; 9 | ClassName = BWSplitView; 10 | SuperClass = NSSplitView; 11 | } 12 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/subtleGradient/kod/master/deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib -------------------------------------------------------------------------------- /src/kexceptions.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | extern NSString * const KFileNotFoundException; 6 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolkit_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'BWToolkit' target in the 'BWToolkit' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /xcconfig/debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "./base.xcconfig" 2 | 3 | ONLY_ACTIVE_ARCH = YES 4 | 5 | GCC_ENABLE_FIX_AND_CONTINUE = YES 6 | GCC_DYNAMIC_NO_PIC = NO 7 | GCC_OPTIMIZATION_LEVEL = 0 8 | GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_DEFINITIONS) K_DEBUG_BUILD=1 9 | -------------------------------------------------------------------------------- /src/KASTOutlineView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KASTOutlineView : NSOutlineView { 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /src/KPopUpContentView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KPopUpContentView : NSView { 6 | 7 | } 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /xcconfig/base-local.xcconfig.in: -------------------------------------------------------------------------------- 1 | // You can make a copy of this file as "base-local.xcconfig" where build 2 | // settings can be overridden or customized. 3 | 4 | // Example of using a LLVM/Clang compiler in a custom location: 5 | //CC = /usr/local/bin/clang 6 | //CXX = /usr/local/bin/clang++ 7 | -------------------------------------------------------------------------------- /src/KScrollView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KScrollView : NSScrollView { 6 | } 7 | + (Class)_verticalScrollerClass; 8 | @end 9 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenField.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTokenField.m 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 "BWTokenField.h" 10 | 11 | @implementation BWTokenField 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/KASTOutlineView.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KASTOutlineView.h" 6 | 7 | @implementation KASTOutlineView 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /src/kexceptions.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "kexceptions.h" 6 | 7 | NSString * const KFileNotFoundException = @"KFileNotFoundException"; 8 | -------------------------------------------------------------------------------- /src/KHTTPURLHandler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KURLHandler.h" 6 | 7 | @interface KHTTPURLHandler : KURLHandler { 8 | } 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentButton.m 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 "BWTransparentButton.h" 10 | 11 | @implementation BWTransparentButton 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSlider.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentSlider.m 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 "BWTransparentSlider.h" 10 | 11 | @implementation BWTransparentSlider 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /src/KNodeThread.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | @interface KNodeThread : NSThread { 7 | } 8 | 9 | + (void)handleUncaughtException:(id)err; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /src/shared-dispatch-queues.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #pragma once 6 | #import 7 | 8 | extern dispatch_queue_t gDispatchQueueSyntaxHighlight; 9 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenField.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTokenField.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 10 | 11 | @interface BWTokenField : NSTokenField 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckbox.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentCheckbox.m 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 "BWTransparentCheckbox.h" 10 | 11 | @implementation BWTransparentCheckbox 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /update.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [[ $1 && $1 == origin ]]; then 4 | echo "Fetching from origin..." 5 | git fetch origin 6 | 7 | else 8 | echo "Fetching from upstream (https://github.com/rsms/kod.git)..." 9 | git fetch upstream 10 | fi 11 | 12 | echo "Updating submodules..." 13 | git submodule update --init 14 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddMiniBottomBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAddMiniBottomBar.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 10 | 11 | @interface BWAddMiniBottomBar : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWCustomView.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWCustomView; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWInsetTextField.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWInsetTextField.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 10 | 11 | @interface BWInsetTextField : NSTextField 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWRemoveBottomBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWRemoveBottomBar.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 10 | 11 | @interface BWRemoveBottomBar : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolkit.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolkit.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 10 | 11 | @interface BWToolkit : IBPlugin { 12 | 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /src/KClipView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KClipView : NSClipView { 6 | BOOL allowsScrolling_; 7 | } 8 | 9 | @property BOOL allowsScrolling; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddSheetBottomBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAddSheetBottomBar.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 10 | 11 | @interface BWAddSheetBottomBar : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddSmallBottomBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAddSmallBottomBar.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 10 | 11 | @interface BWAddSmallBottomBar : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientBox.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWGradientBox; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenField.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTokenField; 11 | SuperClass = NSTokenField; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTokenFieldCell.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 10 | 11 | @interface BWTokenFieldCell : NSTokenFieldCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentButton.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 10 | 11 | @interface BWTransparentButton : NSButton 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentPopUpButton.m 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 "BWTransparentPopUpButton.h" 10 | 11 | @implementation BWTransparentPopUpButton 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSlider.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentSlider.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 10 | 11 | @interface BWTransparentSlider : NSSlider 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/KWindowBackgroundCoverView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | 8 | @interface KWindowBackgroundCoverView : NSView { 9 | 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddRegularBottomBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAddRegularBottomBar.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 10 | 11 | @interface BWAddRegularBottomBar : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButton.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAnchoredButton; 11 | SuperClass = NSButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWRemoveBottomBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWRemoveBottomBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSlider.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTexturedSlider; 11 | SuperClass = NSSlider; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItem.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWToolbarItem; 11 | SuperClass = NSToolbarItem; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckbox.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentCheckbox.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 10 | 11 | @interface BWTransparentCheckbox : NSButton 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/NSString-editdistance.h: -------------------------------------------------------------------------------- 1 | @interface NSString (EditDistance) 2 | 3 | /** 4 | * Returns 1.0 if the strings are entirly different, 0.0 if the strings are 5 | * identical, and a number in between if they are similar. Lower means shorter 6 | * edit distance. 7 | */ 8 | - (double)editDistanceToString:(NSString*)otherString; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddMiniBottomBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAddMiniBottomBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddSheetBottomBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAddSheetBottomBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddSmallBottomBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAddSmallBottomBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButtonBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAnchoredButtonBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButtonCell.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 10 | 11 | @interface BWAnchoredButtonCell : NSButtonCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButton.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWHyperlinkButton; 11 | SuperClass = NSButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButtonCell.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 10 | 11 | @interface BWHyperlinkButtonCell : NSButtonCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWInsetTextField.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWInsetTextField; 11 | SuperClass = NSTextField; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextField.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWStyledTextField; 11 | SuperClass = NSTextField; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButton.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentButton; 11 | SuperClass = NSButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSlider.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentSlider; 11 | SuperClass = NSSlider; 12 | } 13 | -------------------------------------------------------------------------------- /src/KKodURLHandler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KURLHandler.h" 6 | 7 | @interface KKodURLHandler : KURLHandler { 8 | NSDictionary *commandToFileResource_; 9 | } 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /src/NSCharacterSet-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSCharacterSet (Kod) 6 | + (NSCharacterSet*)whitespaceAndCommaCharacterSet; 7 | + (NSCharacterSet*)slashCharacterSet; // "/" 8 | @end 9 | -------------------------------------------------------------------------------- /src/NSString-intern.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSString (intern) 6 | 7 | + (NSString*)internedStringWithString:(NSString*)str; 8 | - (NSString*)internedString; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAddRegularBottomBar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAddRegularBottomBar; 11 | SuperClass = NSView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSelectableToolbar.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWSelectableToolbar; 11 | SuperClass = NSToolbar; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenFieldCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTokenFieldCell; 11 | SuperClass = NSTokenFieldCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarItem.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 10 | 11 | @interface BWToolbarItem : NSToolbarItem 12 | { 13 | NSString *identifierString; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowFontsItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarShowFontsItem.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 10 | 11 | @interface BWToolbarShowFontsItem : NSToolbarItem 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckbox.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentCheckbox; 11 | SuperClass = NSButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScrollView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentScrollView.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 10 | 11 | @interface BWTransparentScrollView : NSScrollView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTableView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentTableView.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 10 | 11 | @interface BWTransparentTableView : NSTableView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSString+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+BWAdditions.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 10 | 11 | @interface NSString (BWAdditions) 12 | 13 | + (NSString *)bwRandomUUID; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredPopUpButton.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWAnchoredPopUpButton; 11 | SuperClass = NSPopUpButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWHyperlinkButtonCell; 11 | SuperClass = NSButtonCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSheetController.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | "openSheet:" = id; 4 | "closeSheet:" = id; 5 | "messageDelegateAndCloseSheet:" = id; 6 | }; 7 | Outlets = { 8 | sheet = NSWindow; 9 | parentWindow = NSWindow; 10 | delegate = id; 11 | }; 12 | ClassName = BWSheetController; 13 | SuperClass = NSObject; 14 | } 15 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSliderCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTexturedSliderCell; 11 | SuperClass = NSSliderCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowColorsItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarShowColorsItem.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 10 | 11 | @interface BWToolbarShowColorsItem : NSToolbarItem 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentPopUpButton.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 10 | 11 | @interface BWTransparentPopUpButton : NSPopUpButton 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScroller.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentScroller; 11 | SuperClass = NSScroller; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTableView.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentTableView; 11 | SuperClass = NSTableView; 12 | } 13 | -------------------------------------------------------------------------------- /src/NSView-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSView (Kod) 6 | 7 | - (NSView*)findFirstParentViewOfKind:(Class)kind; 8 | 9 | - (NSView*)findFirstSubviewOfKind:(Class)kind; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextFieldCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWStyledTextFieldCell; 11 | SuperClass = NSTextFieldCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowColorsItem.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWToolbarShowColorsItem; 11 | SuperClass = NSToolbarItem; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowFontsItem.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWToolbarShowFontsItem; 11 | SuperClass = NSToolbarItem; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButtonCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentButtonCell; 11 | SuperClass = NSButtonCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButton.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentPopUpButton; 11 | SuperClass = NSPopUpButton; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScrollView.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentScrollView; 11 | SuperClass = NSScrollView; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScroller.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentScroller.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 10 | 11 | @interface BWTransparentScroller : NSScroller 12 | { 13 | BOOL isVertical; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSliderCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentSliderCell; 11 | SuperClass = NSSliderCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButton.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 10 | 11 | @interface BWUnanchoredButton : NSButton 12 | { 13 | NSPoint topAndLeftInset; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButtonContainer.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButtonContainer.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 10 | 11 | @interface BWUnanchoredButtonContainer : NSView 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSApplication+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSApplication+BWAdditions.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 10 | 11 | @interface NSApplication (BWAdditions) 12 | 13 | + (BOOL)bwIsOnLeopard; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredPopUpButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredPopUpButtonCell.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 10 | 11 | @interface BWAnchoredPopUpButtonCell : NSPopUpButtonCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSliderInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWControlsInspector.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 10 | 11 | @interface BWTexturedSliderInspector : IBInspector 12 | { 13 | } 14 | @end 15 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckboxCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentCheckboxCell; 11 | SuperClass = NSButtonCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTextFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentTextFieldCell.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 10 | 11 | @interface BWTransparentTextFieldCell : NSTextFieldCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentPopUpButtonCell.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 10 | 11 | @interface BWTransparentPopUpButtonCell : NSPopUpButtonCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSliderCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentSliderCell.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 10 | 11 | @interface BWTransparentSliderCell : NSSliderCell 12 | { 13 | BOOL isPressed; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTableViewCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentTableViewCell; 11 | SuperClass = NSTextFieldCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTextFieldCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentTextFieldCell; 11 | SuperClass = NSTextFieldCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItemInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarItemInspector.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 10 | 11 | @interface BWToolbarItemInspector : IBInspector 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButtonCell.classdescription: -------------------------------------------------------------------------------- 1 | { 2 | Actions = { 3 | // Define action descriptions here, for example 4 | // "myAction:" = id; 5 | }; 6 | Outlets = { 7 | // Define outlet descriptions here, for example 8 | // myOutlet = NSView; 9 | }; 10 | ClassName = BWTransparentPopUpButtonCell; 11 | SuperClass = NSPopUpButtonCell; 12 | } 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWCustomView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientSplitViewSubview.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 10 | #import "NSCustomView.h" 11 | 12 | @interface BWCustomView : NSCustomView 13 | { 14 | BOOL isOnItsOwn; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSelectableToolbarInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSelectableToolbarInspector.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 10 | 11 | @interface BWSelectableToolbarInspector : IBInspector 12 | { 13 | } 14 | @end 15 | -------------------------------------------------------------------------------- /src/main.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | #import 7 | 8 | int main(int argc, char *argv[]) { 9 | sigset(SIGPIPE, (void(*)(int))&sigignore); 10 | return NSApplicationMain(argc, (const char **)argv); 11 | } 12 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButtonInspector.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 10 | 11 | @interface BWHyperlinkButtonInspector : IBInspector 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentButtonCell.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 10 | #import "BWTransparentButton.h" 11 | 12 | @interface BWTransparentButtonCell : NSButtonCell 13 | { 14 | 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTableViewCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentTableViewCell.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 10 | 11 | @interface BWTransparentTableViewCell : NSTextFieldCell 12 | { 13 | BOOL mIsEditingOrSelecting; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/NSMutableArray-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSMutableArray (Kod) 6 | 7 | // Reverse objects in range in-place (based on exchangeObjectAtIndex:...) 8 | - (void)reverseObjectsInRange:(NSRange)range; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWRemoveBottomBar.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWRemoveBottomBar.m 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 "BWRemoveBottomBar.h" 10 | 11 | @implementation BWRemoveBottomBar 12 | 13 | - (NSRect)bounds 14 | { 15 | return NSMakeRect(-10000,-10000,0,0); 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenAttachmentCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTokenAttachmentCell.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 10 | #import "NSTokenAttachmentCell.h" 11 | 12 | @interface BWTokenAttachmentCell : NSTokenAttachmentCell 13 | { 14 | 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckboxCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentCheckboxCell.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 10 | #import "BWTransparentCheckbox.h" 11 | 12 | @interface BWTransparentCheckboxCell : NSButtonCell 13 | { 14 | 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButtonCell.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 10 | #import "BWAnchoredButtonCell.h" 11 | 12 | @interface BWUnanchoredButtonCell : BWAnchoredButtonCell 13 | { 14 | 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /src/HUnorderedMap.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "HUnorderedMap.h" 6 | 7 | /*template 8 | HUnorderedMap::~HUnorderedMap() { 9 | HSpinLockSync(spinlock_) { 10 | // TODO: release all 11 | } 12 | }*/ 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSplitViewInspectorAutosizingButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSplitViewInspectorAutosizingButtonCell.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 10 | 11 | @interface BWSplitViewInspectorAutosizingButtonCell : NSButtonCell 12 | { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/KMachService-NSInvocation.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSInvocation (KMachService) 6 | 7 | - (void)invokeKMachServiceCallbackWithArgument:(id)arg; 8 | - (void)invokeKMachServiceCallbackWithArguments:(id)firstArg, ...; 9 | 10 | @end -------------------------------------------------------------------------------- /admin/git-config-deps-with-RW-urls.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | (cd deps/libcss && git remote set-url origin git@github.com:rsms/libcss-osx.git) 3 | (cd deps/hunch-cocoa && git remote set-url origin git@github.com:rsms/hunch-cocoa.git) 4 | (cd deps/chromium-tabs && git remote set-url origin git@github.com:rsms/chromium-tabs.git) 5 | 6 | echo Submodule upstream URLs are now configured as: 7 | git submodule foreach git remote -v 8 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButton.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 10 | 11 | @interface BWHyperlinkButton : NSButton 12 | { 13 | NSString *urlString; 14 | } 15 | 16 | @property (copy, nonatomic) NSString *urlString; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSWindow+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSWindow+BWAdditions.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 10 | 11 | @interface NSWindow (BWAdditions) 12 | 13 | - (void)bwResizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; 14 | - (BOOL)bwIsTextured; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSliderCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTexturedSliderCell.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 10 | 11 | @interface BWTexturedSliderCell : NSSliderCell 12 | { 13 | BOOL isPressed; 14 | int trackHeight; 15 | } 16 | 17 | @property int trackHeight; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Generic 2 | .DS_Store 3 | ._* 4 | *.o 5 | *.dylib 6 | * copy.* 7 | .lock-wscript 8 | *.node 9 | 10 | # XCode 11 | build/* 12 | *.pbxuser 13 | *.mode?v3 14 | *.perspectivev3 15 | *.xcworkspace 16 | xcuserdata 17 | *.moved-aside 18 | 19 | # Dependencies 20 | /deps/bwtoolkit/build 21 | 22 | # Kod Specific 23 | /src/kod_version.h 24 | /website/public/config.php 25 | /node-kod/build 26 | /xcconfig/base-local.xcconfig 27 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSWindow-NSTimeMachineSupport.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.1.2. 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. 5 | */ 6 | 7 | #import 8 | 9 | @interface NSWindow (NSTimeMachineSupport) 10 | - (void)setTimeMachineDelegate:(id)fp8; 11 | - (id)timeMachineDelegate; 12 | - (void)setMovable:(BOOL)fp8; 13 | - (BOOL)isMovable; 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/libcss"] 2 | path = deps/libcss 3 | url = https://github.com/rsms/libcss-osx.git 4 | [submodule "deps/hunch-cocoa"] 5 | path = deps/hunch-cocoa 6 | url = https://github.com/rsms/hunch-cocoa.git 7 | [submodule "deps/node"] 8 | path = deps/node 9 | url = https://github.com/ry/node.git 10 | [submodule "deps/chromium-tabs"] 11 | path = deps/chromium-tabs 12 | url = https://github.com/rsms/chromium-tabs.git 13 | -------------------------------------------------------------------------------- /website/public/download/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSView+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSView+BWAdditions.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 10 | 11 | @interface NSView (BWAdditions) 12 | 13 | - (void)bwBringToFront; 14 | 15 | // Returns animator proxy and calls setWantsLayer:NO on the view when the animation completes 16 | - (id)bwAnimator; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientWell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientWell.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 10 | 11 | @interface BWGradientWell : NSView 12 | { 13 | NSColorWell *startingColorWell, *endingColorWell; 14 | } 15 | 16 | @property (nonatomic, retain) IBOutlet NSColorWell *startingColorWell, *endingColorWell; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /src/KBrowser.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | // We provide our own CTBrowser subclass so we can create our own, custom tabs. 8 | // See the implementation file for details. 9 | 10 | @interface KBrowser : CTBrowser { 11 | BOOL shouldCloseTab; 12 | } 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /src/KFileTextFieldCell.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KFileTextFieldCell : NSTextFieldCell { 6 | @private 7 | NSImage *image_; 8 | } 9 | 10 | @property(retain) NSImage *image; 11 | 12 | - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; 13 | - (NSSize)cellSize; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /src/NSString-data.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSString (data) 6 | 7 | - (NSMutableData*)mutableDataUsingEncoding:(NSStringEncoding)encoding; 8 | 9 | - (NSMutableData*)mutableDataUsingEncoding:(NSStringEncoding)encoding 10 | range:(NSRange)range; 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSEvent+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSEvent+BWAdditions.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 10 | 11 | @interface NSEvent (BWAdditions) 12 | 13 | + (BOOL)bwShiftKeyIsDown; 14 | + (BOOL)bwCommandKeyIsDown; 15 | + (BOOL)bwOptionKeyIsDown; 16 | + (BOOL)bwControlKeyIsDown; 17 | + (BOOL)bwCapsLockKeyIsDown; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/KModeTextFieldDecoration.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KTextFieldDecoration.h" 6 | 7 | @interface KModeTextFieldDecoration : KTextFieldDecoration { 8 | NSImage *icon_; 9 | NSString *name_; 10 | } 11 | @property(retain) NSString *name; 12 | 13 | - (id)initWithName:(NSString*)name; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /src/KFileURLHandler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KURLHandler.h" 6 | 7 | @interface KFileURLHandler : KURLHandler { 8 | } 9 | 10 | - (void)readURL:(NSURL*)absoluteURL 11 | ofType:(NSString*)typeName 12 | inTab:(KDocument*)tab 13 | successCallback:(void(^)(void))successCallback; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientWellColorWell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientWellColorWell.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 10 | #import "BWGradientWell.h" 11 | 12 | @interface BWGradientWellColorWell : NSColorWell 13 | { 14 | BWGradientWell *gradientWell; 15 | } 16 | 17 | @property (nonatomic, retain) IBOutlet BWGradientWell *gradientWell; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/KTerminalUsageWindowController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | @interface KTerminalUsageWindowController : NSWindowController { 7 | IBOutlet NSTextField *binPathTextField_; 8 | IBOutlet NSButton *cancelButton_; 9 | IBOutlet NSButton *commitButton_; 10 | } 11 | 12 | - (IBAction)createLink:(id)sender; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /src/KTextStorage.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | #import "HSpinLock.h" 7 | 8 | @interface KTextStorage : NSTextStorage { 9 | NSMutableArray *batchQueue_; 10 | HSpinLock batchQueueLock_; 11 | } 12 | 13 | - (void)queueAttributes:(NSDictionary*)attrs range:(NSRange)range; 14 | - (void)flushQueuedAttributes; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /src/shared-dispatch-queues.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "shared-dispatch-queues.h" 6 | 7 | dispatch_queue_t gDispatchQueueSyntaxHighlight = NULL; 8 | 9 | __attribute__((constructor(0))) static void __init() { 10 | gDispatchQueueSyntaxHighlight = 11 | dispatch_queue_create("kod.syntaxhighlight", NULL); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButton.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 10 | 11 | @interface BWAnchoredButton : NSButton 12 | { 13 | BOOL isAtLeftEdgeOfBar; 14 | BOOL isAtRightEdgeOfBar; 15 | NSPoint topAndLeftInset; 16 | } 17 | 18 | @property BOOL isAtLeftEdgeOfBar; 19 | @property BOOL isAtRightEdgeOfBar; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonInspector.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButtonInspector.m 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 "BWHyperlinkButtonInspector.h" 10 | 11 | @implementation BWHyperlinkButtonInspector 12 | 13 | - (NSString *)viewNibName 14 | { 15 | return @"BWHyperlinkButtonInspector"; 16 | } 17 | 18 | - (void)refresh 19 | { 20 | [super refresh]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredPopUpButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredPopUpButton.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 10 | 11 | @interface BWAnchoredPopUpButton : NSPopUpButton 12 | { 13 | BOOL isAtLeftEdgeOfBar; 14 | BOOL isAtRightEdgeOfBar; 15 | NSPoint topAndLeftInset; 16 | } 17 | 18 | @property BOOL isAtLeftEdgeOfBar; 19 | @property BOOL isAtRightEdgeOfBar; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSTokenAttachment.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.1.2. 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. 5 | */ 6 | 7 | #import 8 | 9 | @interface NSTokenAttachment : NSTextAttachment 10 | { 11 | id _delegate; 12 | } 13 | 14 | - (id)initWithDelegate:(id)fp8; 15 | - (void)encodeWithCoder:(id)fp8; 16 | - (id)initWithCoder:(id)fp8; 17 | - (id)attachmentCell; 18 | - (id)delegate; 19 | - (void)setDelegate:(id)fp8; 20 | 21 | @end 22 | 23 | -------------------------------------------------------------------------------- /src/CIImage-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | @interface CIImage (kod) 8 | 9 | - (CIImage*)flippedImage; 10 | 11 | - (CIImage*)imageByApplyingFilterNamed:(NSString*)filterName; 12 | 13 | - (CIImage*)imageByApplyingFilterNamed:(NSString*)filterName 14 | parameters:(NSDictionary*)parameters; 15 | 16 | @end -------------------------------------------------------------------------------- /src/KASTViewerWindowController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @class KASTViewerController; 6 | 7 | @interface KASTViewerWindowController : NSWindowController { 8 | IBOutlet KASTViewerController* outlineViewController_; 9 | } 10 | 11 | @property(assign) KASTViewerController* outlineViewController; 12 | 13 | + (KASTViewerWindowController*)sharedInstance; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /website/public/breakpad/stackwalk.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWInsetTextField.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWInsetTextField.m 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 "BWInsetTextField.h" 10 | 11 | @implementation BWInsetTextField 12 | 13 | - (id)initWithCoder:(NSCoder *)decoder; 14 | { 15 | self = [super initWithCoder:decoder]; 16 | 17 | if (self) 18 | { 19 | [[self cell] setBackgroundStyle:NSBackgroundStyleRaised]; 20 | } 21 | 22 | return self; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/NSString-cpp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // dealing with NSString and C++ std library 6 | #ifdef __cplusplus 7 | #import 8 | 9 | @interface NSString (cpp) 10 | - (NSUInteger)populateStdString:(std::string&)str 11 | usingEncoding:(NSStringEncoding)encoding 12 | range:(NSRange)range; 13 | @end 14 | 15 | #endif // __cplusplus 16 | -------------------------------------------------------------------------------- /xcconfig/release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "./base.xcconfig" 2 | 3 | VALID_ARCHS = i386 x86_64 4 | DEPLOYMENT_POSTPROCESSING = YES 5 | DEAD_CODE_STRIPPING = YES 6 | PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES 7 | 8 | GCC_PREPROCESSOR_DEFINITIONS = $(BASE_PREPROCESSOR_DEFINITIONS) K_WITH_CRASH_REPORT_COLLECTOR=1 NDEBUG=1 9 | 10 | GCC_AUTO_VECTORIZATION = YES 11 | GCC_ENABLE_SSE3_EXTENSIONS = YES 12 | GCC_ENABLE_SSE41_EXTENSIONS = YES 13 | GCC_ENABLE_SSE42_EXTENSIONS = YES 14 | GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = YES 15 | GCC_ENABLE_FIX_AND_CONTINUE = NO 16 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItemInspector.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarItemInspector.m 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 "BWToolbarItemInspector.h" 10 | 11 | @implementation BWToolbarItemInspector 12 | 13 | - (NSString *)viewNibName { 14 | return @"BWToolbarItemInspector"; 15 | } 16 | 17 | - (void)refresh { 18 | // Synchronize your inspector's content view with the currently selected objects 19 | [super refresh]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSliderInspector.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWControlsInspector.m 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 "BWTexturedSliderInspector.h" 10 | 11 | @implementation BWTexturedSliderInspector 12 | 13 | - (NSString *)viewNibName { 14 | return @"BWTexturedSliderInspector"; 15 | } 16 | 17 | - (void)refresh { 18 | // Synchronize your inspector's content view with the currently selected objects. 19 | [super refresh]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButtonContainer.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButtonContainer.m 3 | // BWToolkit 4 | // 5 | // Created by Brandon Walkin (www.brandonwalkin.com) 6 | // All code is provided under the New BSD license. 7 | // 8 | 9 | // See the integration class 10 | 11 | #import "BWUnanchoredButtonContainer.h" 12 | 13 | @implementation BWUnanchoredButtonContainer 14 | 15 | - (void)awakeFromNib 16 | { 17 | for (NSView *subview in [self subviews]) 18 | { 19 | [subview setFrameSize:NSMakeSize(subview.frame.size.width, 22)]; 20 | } 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /src/KMachService.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KMachServiceProtocol.h" 6 | 7 | @interface KMachService : NSObject { 9 | NSConnection *connection_; 10 | NSMutableDictionary *fileHandleWaitQueue_; 11 | } 12 | 13 | + (KMachService*)sharedService; 14 | - (id)initWithMachPortName:(NSString*)portName; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSplitViewInspectorAutosizingView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSplitViewInspectorAutosizingView.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 10 | #import "BWSplitView.h" 11 | 12 | @interface BWSplitViewInspectorAutosizingView : NSView 13 | { 14 | NSMutableArray *buttons; 15 | BWSplitView *splitView; 16 | } 17 | 18 | @property (retain) BWSplitView *splitView; 19 | 20 | - (void)layoutButtons; 21 | - (BOOL)isVertical; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | IBSystem Version 12 | 9E17 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | IBSystem Version 12 | 9E17 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSString+BWAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+BWAdditions.m 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 "NSString+BWAdditions.h" 10 | 11 | @implementation NSString (BWAdditions) 12 | 13 | + (NSString *)bwRandomUUID 14 | { 15 | CFUUIDRef uuidObj = CFUUIDCreate(nil); 16 | NSString *newUUID = (NSString*)CFMakeCollectable(CFUUIDCreateString(nil, uuidObj)); 17 | CFRelease(uuidObj); 18 | 19 | return [newUUID autorelease]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /src/KScroller.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @class KDocument; 6 | @interface KScroller : NSScroller { 7 | BOOL vertical_; 8 | BOOL hover_; 9 | KDocument *tab_; // weak 10 | NSTrackingArea *trackingArea_; 11 | } 12 | @property(assign) KDocument *tab; 13 | @property(readonly, nonatomic) BOOL isCollapsed; 14 | + (CGFloat)scrollerWidth; 15 | + (CGFloat)scrollerWidthForControlSize:(NSControlSize)controlSize; 16 | @end 17 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | IBSystem Version 12 | 9D34 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextFieldInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWStyledTextFieldInspector.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 10 | #import "BWStyledTextField.h" 11 | 12 | @interface BWStyledTextFieldInspector : IBInspector 13 | { 14 | BWStyledTextField *textField; 15 | int shadowPositionPopupSelection, fillPopupSelection; 16 | } 17 | 18 | @property int shadowPositionPopupSelection, fillPopupSelection; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | IBSystem Version 12 | 9E17 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | IBSystem Version 12 | 9E17 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSelectableToolbarInspector.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWSelectableToolbarInspector.m 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 "BWSelectableToolbarInspector.h" 10 | 11 | @implementation BWSelectableToolbarInspector 12 | 13 | - (NSString *)viewNibName { 14 | return @"BWSelectableToolbarInspector"; 15 | } 16 | 17 | - (void)refresh { 18 | // Synchronize your inspector's content view with the currently selected objects 19 | [super refresh]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSApplication+BWAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSApplication+BWAdditions.m 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 "NSApplication+BWAdditions.h" 10 | 11 | @implementation NSApplication (BWAdditions) 12 | 13 | + (BOOL)bwIsOnLeopard 14 | { 15 | SInt32 minorVersion, majorVersion; 16 | Gestalt(gestaltSystemVersionMajor, &majorVersion); 17 | Gestalt(gestaltSystemVersionMinor, &minorVersion); 18 | return majorVersion == 10 && minorVersion == 5; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSCustomView.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by class-dump 3.1.2. 3 | * 4 | * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2007 by Steve Nygard. 5 | */ 6 | 7 | #import 8 | 9 | @class NSString; 10 | 11 | @interface NSCustomView : NSView 12 | { 13 | NSString *className; 14 | NSView *view; 15 | id extension; 16 | } 17 | 18 | + (void)initialize; 19 | - (id)initWithFrame:(NSRect)fp8; 20 | - (void)dealloc; 21 | - (void)finalize; 22 | - (id)nibInstantiate; 23 | - (void)encodeWithCoder:(id)fp8; 24 | - (id)initWithCoder:(id)fp8; 25 | 26 | @end 27 | 28 | -------------------------------------------------------------------------------- /src/KSudo.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @class HDStream; 6 | 7 | @interface KSudo : NSObject { 8 | } 9 | 10 | + (void)execute:(NSString*)executable 11 | arguments:(NSArray*)arguments 12 | prompt:(NSString*)prompt 13 | callback:(void(^)(NSError*,NSData*))callback; 14 | 15 | + (void)execute:(NSString*)executable 16 | arguments:(NSArray*)arguments 17 | callback:(void(^)(NSError*,NSData*))callback; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/NSImage-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | @interface NSImage (kod) 8 | 9 | + (NSImage*)imageWithCIImage:(CIImage*)ciImage; 10 | 11 | - (NSImage*)imageByApplyingCIFilterNamed:(NSString*)ciFilterName; 12 | 13 | - (NSImage*)imageByApplyingCIFilterNamed:(NSString*)ciFilterName 14 | filterParameters:(NSDictionary*)filterParameters; 15 | 16 | - (CIImage*)ciImage; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSImage+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSImage+BWAdditions.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 10 | 11 | @interface NSImage (BWAdditions) 12 | 13 | // Draw a solid color over an image - taking into account alpha. Useful for coloring template images. 14 | - (NSImage *)bwTintedImageWithColor:(NSColor *)tint; 15 | 16 | // Rotate an image 90 degrees clockwise or counterclockwise 17 | - (NSImage *)bwRotateImage90DegreesClockwise:(BOOL)clockwise; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /src/KWindowBackgroundCoverView.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KWindowBackgroundCoverView.h" 6 | 7 | 8 | @implementation KWindowBackgroundCoverView 9 | 10 | - (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent { 11 | return YES; 12 | } 13 | 14 | - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { 15 | return YES; 16 | } 17 | 18 | - (void)mouseDown:(NSEvent *)theEvent { 19 | [NSApp preventWindowOrdering]; 20 | } 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /AUTHORS.md: -------------------------------------------------------------------------------- 1 | ## Authors, ordered by first contribution 2 | 3 | - Rasmus Andersson 4 | - Matt Martz 5 | - Kushal Pisavadia 6 | - August Joki 7 | - Swizec Teller 8 | - Cody Krieger 9 | - Luc Heinrich 10 | - Steve Johnson 11 | - Christian Eager 12 | - Agostino Carandente 13 | - Reed Stoner 14 | - Aleksandr Kostyutchenko 15 | - Edward Patel 16 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/nl.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 629 7 | IBOldestOS 8 | 5 9 | IBOpenObjects 10 | 11 | 6 12 | 13 | IBSystem Version 14 | 9D34 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTexturedSlider.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWTexturedSlider.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 10 | 11 | @interface BWTexturedSlider : NSSlider 12 | { 13 | int trackHeight, indicatorIndex; 14 | NSRect sliderCellRect; 15 | NSButton *minButton, *maxButton; 16 | } 17 | 18 | @property int indicatorIndex; 19 | @property (retain) NSButton *minButton; 20 | @property (retain) NSButton *maxButton; 21 | 22 | - (int)trackHeight; 23 | - (void)setTrackHeight:(int)newTrackHeight; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/KPopUpContentView.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KPopUpContentView.h" 6 | #import "common.h" 7 | 8 | @implementation KPopUpContentView 9 | 10 | - (void)drawRect:(NSRect)dirtyRect { 11 | [[NSColor colorWithCalibratedWhite:0.9 alpha:0.95] set]; 12 | NSRect bounds = [self bounds]; 13 | [[NSBezierPath bezierPathWithRoundedRect:bounds 14 | xRadius:5.0 15 | yRadius:5.0] fill]; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /src/KCrashReportCollector.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KCrashReportCollector : NSObject { 6 | NSString *processedFileSuffix_; 7 | } 8 | + (KCrashReportCollector*)crashReportCollector; 9 | - (NSArray*)URLsForUnprocessedCrashReports; 10 | - (NSURL*)markCrashReportsAsProcessedForURLs:(NSArray*)urls; 11 | - (void)submitCrashReportAtURL:(NSURL*)reportURL 12 | callback:(void(^)(NSError*))callback; 13 | - (void)askUserToSubmitAnyUnprocessedCrashReport; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Headers/Sparkle.h: -------------------------------------------------------------------------------- 1 | // 2 | // Sparkle.h 3 | // Sparkle 4 | // 5 | // Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07) 6 | // Copyright 2006 Andy Matuschak. All rights reserved. 7 | // 8 | 9 | #ifndef SPARKLE_H 10 | #define SPARKLE_H 11 | 12 | // This list should include the shared headers. It doesn't matter if some of them aren't shared (unless 13 | // there are name-space collisions) so we can list all of them to start with: 14 | 15 | #import 16 | 17 | #import 18 | #import 19 | #import 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/KSplitView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "BWSplitView.h" 6 | 7 | extern NSString * const KSplitViewDidChangeCollapseStateNotification; 8 | 9 | @interface KSplitView : BWSplitView { 10 | NSRect dividerRect_; 11 | CGFloat position_; 12 | BOOL collapsed_; 13 | } 14 | 15 | @property(readonly, nonatomic) NSRect dividerRect; 16 | @property(nonatomic) CGFloat position; 17 | @property(nonatomic) BOOL isCollapsed; 18 | @property(readonly, nonatomic) CGFloat collapsePositionThreshold; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | IBSystem Version 14 | 9E17 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScrollViewIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentScrollViewIntegration.m 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 10 | #import "BWTransparentScrollView.h" 11 | 12 | @implementation BWTransparentScrollView ( BWTransparentScrollViewIntegration ) 13 | 14 | - (IBInset)ibLayoutInset 15 | { 16 | IBInset inset; 17 | inset.top = 0; 18 | inset.bottom = 0; 19 | inset.left = -1; 20 | inset.right = -1; 21 | 22 | return inset; 23 | } 24 | 25 | - (void)ibTester 26 | { 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /deps/bwtoolkit/NSColor+BWAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSColor+BWAdditions.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 10 | 11 | @interface NSColor (BWAdditions) 12 | 13 | // Use this method to draw 1 px wide lines independent of scale factor. Handy for resolution independent drawing. Still needs some work - there are issues with drawing at the edges of views. 14 | - (void)bwDrawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 10A96 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWStyledTextFieldCell.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 10 | 11 | @interface BWStyledTextFieldCell : NSTextFieldCell 12 | { 13 | BOOL shadowIsBelow, hasShadow, hasGradient; 14 | NSColor *shadowColor, *startingColor, *endingColor, *solidColor; 15 | 16 | NSShadow *shadow; 17 | NSMutableDictionary *previousAttributes; 18 | } 19 | 20 | @property BOOL shadowIsBelow, hasShadow, hasGradient; 21 | @property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /src/KAnimation.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KAnimation : NSAnimation { 6 | void(^onProgress_)(float); 7 | void(^onEnd_)(void); 8 | } 9 | 10 | @property(copy) void(^onProgress)(float); 11 | @property(copy) void(^onEnd)(void); 12 | 13 | + (KAnimation*)animationWithDuration:(NSTimeInterval)duration 14 | animationCurve:(NSAnimationCurve)animationCurve; 15 | 16 | - (id)initWithDuration:(NSTimeInterval)duration 17 | animationCurve:(NSAnimationCurve)animationCurve; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9E17 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 69 14 356 240 0 0 1280 778 7 | IBFramework Version 8 | 489.0 9 | IBLastKnownRelativeProjectPath 10 | ../Sparkle.xcodeproj 11 | IBOldestOS 12 | 5 13 | IBSystem Version 14 | 9D34 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 18 14 | 15 | IBSystem Version 16 | 10A96 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /resources/dsa_pub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIIBtzCCASwGByqGSM44BAEwggEfAoGBAMvk/uELhM8nBH8XiDNxg0I8+WTC8tr0 3 | mYiRQIWdWrayxz2J0snNCpqCdUDSkKzguTAoGt0+xZbqUj/0pBjPuPIefKP4TIGp 4 | /G6pvUeFebYdm94y0nwGr/M2IyymAA/II0AIGjwxYoqZdX9NzZi16CrwBY8rc1Rs 5 | F5aEJj5bnDw/AhUAkAu10HD9HMKaaTY3KQz3ROHhDCECgYEAxOub5DVVO+kE0pU+ 6 | NO9zXW4QFm7Mq93t+cGEuYopTCBfZGGJNgF/mJFIwDlNC6mKKNCzIuT+zr8wSsAw 7 | vNNn+JgI+lpxBVqgt1EAIP2nHaMwD0mAaoxGM4kadWUJroo5yYiGq3vYKo7ntd4m 8 | xSiH6zMBptilqGOaTHUYOkVnf3sDgYQAAoGAS/XdFglhSSbc4gg2DwdHRwuk3Vm6 9 | /fr0A6L0UuZbNdqYfrMyYa8UULLBhvBNThQz75RsgAIpvj0judhm7LSGMatarx9s 10 | YHsZqjObRsbcUgRbnGGdW+XaTbVqdsEckQCPqT0GAj7P2BLNZH0OeevTQFfVgK0y 11 | 5DJeAA/LVsE0IoU= 12 | -----END PUBLIC KEY----- 13 | -------------------------------------------------------------------------------- /src/KMachServiceProtocol.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #define K_SHARED_SERVICE_PORT_NAME "se.hunch.kod.app" 6 | 7 | @protocol KMachServiceProtocol 8 | 9 | - (void)openURLs:(NSArray*)absoluteURLStrings 10 | openCallback:(NSInvocation*)openCallback 11 | closeCallbacks:(NSArray*)closeCallbacks; 12 | 13 | - (void)openNewDocumentWithData:(NSData*)data 14 | ofType:(NSString*)typeName 15 | openCallback:(NSInvocation*)openCallback 16 | closeCallback:(NSInvocation*)closeCallback; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/de.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 658 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9C7010 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/it.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 5 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/ru.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9E17 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUAutomaticUpdateAlert.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 10A96 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSheetControllerIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWSheetControllerIntegration.m 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 10 | #import "BWSheetController.h" 11 | 12 | @implementation BWSheetController ( BWSheetControllerIntegration ) 13 | 14 | - (NSImage *)ibDefaultImage 15 | { 16 | NSBundle *bundle = [NSBundle bundleForClass:[BWSheetController class]]; 17 | 18 | NSImage *image = [[[NSImage alloc] initWithContentsOfFile:[bundle pathForImageResource:@"Library-SheetController.tif"]] autorelease]; 19 | 20 | return image; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /src/NSMutableArray-kod.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "NSMutableArray-kod.h" 6 | 7 | @implementation NSMutableArray (Kod) 8 | 9 | - (void)reverseObjectsInRange:(NSRange)range { 10 | NSUInteger end = range.location + range.length; 11 | if (end > [self count]) { 12 | [NSException raise:NSRangeException 13 | format:@"range goes beyond number of items"]; 14 | } 15 | while ( (range.location != end) && (range.location != --end)) { 16 | [self exchangeObjectAtIndex:range.location++ withObjectAtIndex:end]; 17 | } 18 | } 19 | 20 | @end -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/es.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 667 7 | IBLastKnownRelativeProjectPath 8 | ../../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 9D34 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 15 | IBSystem Version 16 | 10A96 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentScrollView.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentScrollView.m 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 "BWTransparentScrollView.h" 10 | #import "BWTransparentScroller.h" 11 | 12 | @implementation BWTransparentScrollView 13 | 14 | - (id)initWithCoder:(NSCoder *)decoder; 15 | { 16 | if ((self = [super initWithCoder:decoder]) != nil) 17 | { 18 | if ([self respondsToSelector:@selector(ibTester)] == NO) 19 | [self setDrawsBackground:NO]; 20 | } 21 | return self; 22 | } 23 | 24 | + (Class)_verticalScrollerClass 25 | { 26 | return [BWTransparentScroller class]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButtonBarInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButtonBarViewInspector.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 10 | 11 | @interface BWAnchoredButtonBarInspector : IBInspector 12 | { 13 | IBOutlet NSMatrix *matrix; 14 | IBOutlet NSImageView *selectionView; 15 | IBOutlet NSView *contentView; 16 | 17 | BOOL isAnimating; 18 | } 19 | 20 | - (IBAction)selectMode1:(id)sender; 21 | - (IBAction)selectMode2:(id)sender; 22 | - (IBAction)selectMode3:(id)sender; 23 | - (void)selectMode:(int)modeIndex withAnimation:(BOOL)shouldAnimate; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /src/NSError+KAdditions.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | @interface NSError (KAdditions) 8 | + (NSError *)kodErrorWithDescription:(NSString *)msg code:(NSInteger)code; 9 | + (NSError *)kodErrorWithDescription:(NSString *)msg; 10 | + (NSError *)kodErrorWithCode:(NSInteger)code format:(NSString *)format, ...; 11 | + (NSError *)kodErrorWithFormat:(NSString *)format, ...; 12 | + (NSError*)kodErrorWithOSStatus:(OSStatus)status; 13 | + (NSError*)kodErrorWithHTTPStatusCode:(int)status; 14 | + (NSError*)kodErrorWithException:(NSException*)exc; 15 | @end 16 | -------------------------------------------------------------------------------- /website/public/signup-for-beta.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentSliderIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentSliderIntegration.m 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 10 | #import "BWTransparentSlider.h" 11 | 12 | 13 | @implementation BWTransparentSlider ( BWTransparentSliderIntegration ) 14 | 15 | - (IBInset)ibLayoutInset 16 | { 17 | IBInset inset; 18 | 19 | inset.left = 2; 20 | inset.top = 2; 21 | inset.bottom = 3; 22 | 23 | if ([self numberOfTickMarks] == 0) 24 | { 25 | inset.right = 3; 26 | } 27 | else 28 | { 29 | inset.right = 2; 30 | } 31 | 32 | return inset; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdatePermissionPrompt.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../Sparkle.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 6 14 | 41 15 | 16 | IBSystem Version 17 | 10A96 18 | targetFramework 19 | IBCocoaFramework 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/KStatusBarView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @class KSplitView; 6 | 7 | @interface KStatusBarView : NSView { 8 | KSplitView *splitView_; 9 | NSRect splitViewMarkerFrame_; 10 | CGFloat splitViewPositionForLayout_; 11 | NSTrackingArea *splitViewMarkerTrackingArea_; 12 | IBOutlet NSView *rightViewGroup_; 13 | IBOutlet NSTextField *cursorPositionTextField_; 14 | IBOutlet NSButton *toggleSplitViewButton_; 15 | } 16 | 17 | @property(retain) KSplitView *splitView; 18 | @property(readonly, nonatomic) NSTextField *cursorPositionTextField; 19 | 20 | - (void)splitViewDidResize; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolkit.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolkit.m 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 "BWToolkit.h" 10 | 11 | @implementation BWToolkit 12 | - (NSArray *)libraryNibNames { 13 | return [NSArray arrayWithObjects:@"BWSplitViewLibrary",@"BWControllersLibrary",@"BWToolbarItemsLibrary",@"BWBottomBarLibrary",@"BWToolkitLibrary",@"BWTransparentControlsLibrary",@"BWButtonBarLibrary",nil]; 14 | } 15 | 16 | - (NSArray *)requiredFrameworks { 17 | return [NSArray arrayWithObjects:[NSBundle bundleWithIdentifier:@"com.brandonwalkin.BWToolkitFramework"], nil]; 18 | } 19 | 20 | - (NSString *)label 21 | { 22 | return @"BWToolkit"; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentButtonIntegration.m 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 10 | #import "BWTransparentButton.h" 11 | 12 | @implementation BWTransparentButton ( BWTransparentButtonIntegration ) 13 | 14 | - (IBInset)ibLayoutInset 15 | { 16 | IBInset inset; 17 | inset.top = 10; 18 | inset.bottom = 0; 19 | inset.left = 1; 20 | inset.right = 1; 21 | 22 | return inset; 23 | } 24 | 25 | - (NSInteger)ibBaselineCount 26 | { 27 | return 1; 28 | } 29 | 30 | - (CGFloat)ibBaselineAtIndex:(NSInteger)index 31 | { 32 | return 13; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /src/ASTNode.mm: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "ASTNode.h" 6 | #include "common.h" 7 | 8 | using namespace kod; 9 | 10 | NSRange ASTNode::absoluteSourceRange() { 11 | //DLOG("absoluteSourceRange: '%@' [%u, %u]", kind_->weakNSString(), 12 | // sourceLocation_, sourceLength_); 13 | if (sourceRange_.location == NSNotFound) 14 | return sourceRange_; 15 | NSRange range = sourceRange_; 16 | if (parentNode_.get()) { 17 | NSRange &parentRange = parentNode_->sourceRange(); 18 | if (parentRange.location != NSNotFound) 19 | range.location += parentRange.location; 20 | } 21 | return range; 22 | } 23 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentCheckboxIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentCheckBoxIntegration.m 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 10 | #import "BWTransparentCheckbox.h" 11 | 12 | @implementation BWTransparentCheckbox ( BWTransparentCheckboxIntegration ) 13 | 14 | - (NSSize)ibMinimumSize 15 | { 16 | return NSMakeSize(0,18); 17 | } 18 | 19 | - (NSSize)ibMaximumSize 20 | { 21 | return NSMakeSize(100000,18); 22 | } 23 | 24 | - (IBInset)ibLayoutInset 25 | { 26 | IBInset inset; 27 | inset.top = 3; 28 | inset.bottom = 3; 29 | inset.left = 2; 30 | inset.right = 0; 31 | 32 | return inset; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentPopUpButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentPopUpIntegration.m 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 10 | #import "BWTransparentPopUpButton.h" 11 | 12 | @implementation BWTransparentPopUpButton ( BWTransparentPopUpButtonIntegration ) 13 | 14 | - (IBInset)ibLayoutInset 15 | { 16 | IBInset inset; 17 | inset.top = 4; 18 | inset.bottom = 0; 19 | inset.left = 1; 20 | inset.right = 1; 21 | 22 | return inset; 23 | } 24 | 25 | - (NSInteger)ibBaselineCount 26 | { 27 | return 1; 28 | } 29 | 30 | - (CGFloat)ibBaselineAtIndex:(NSInteger)index 31 | { 32 | return 13; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientBox.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientBox.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 10 | 11 | @interface BWGradientBox : NSView 12 | { 13 | NSColor *fillStartingColor, *fillEndingColor, *fillColor; 14 | NSColor *topBorderColor, *bottomBorderColor; 15 | float topInsetAlpha, bottomInsetAlpha; 16 | 17 | BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; 18 | } 19 | 20 | @property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; 21 | @property float topInsetAlpha, bottomInsetAlpha; 22 | @property BOOL hasTopBorder, hasBottomBorder, hasGradient, hasFillColor; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolkitFramework-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | BWToolkitFramework 9 | CFBundleIdentifier 10 | com.brandonwalkin.BWToolkitFramework 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.2.5 19 | NSPrincipalClass 20 | BWToolkit 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/KFileOutlineView.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSOutlineView (KFileOutlineView) 6 | - (NSArray *)selectedItems; 7 | - (void)setSelectedItems:(NSArray *)items; 8 | @end 9 | 10 | extern NSColor *KFileOutlineViewBackgroundColor; 11 | extern NSColor *KFileOutlineViewRowBackgroundColorBlur; 12 | extern NSColor *KFileOutlineViewRowBackgroundColorFocus; 13 | 14 | @interface KFileOutlineView : NSOutlineView { 15 | BOOL firstResponder_; 16 | } 17 | 18 | @property(readonly) BOOL firstResponder; 19 | 20 | - (void)draggedImage:(NSImage *)image 21 | endedAt:(NSPoint)screenPoint 22 | operation:(NSDragOperation)operation; 23 | @end 24 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButtonBar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButtonBar.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 10 | 11 | @interface BWAnchoredButtonBar : NSView 12 | { 13 | BOOL isResizable, isAtBottom, handleIsRightAligned; 14 | int selectedIndex; 15 | id splitViewDelegate; 16 | } 17 | 18 | @property BOOL isResizable, isAtBottom, handleIsRightAligned; 19 | @property int selectedIndex; 20 | 21 | // The mode of this bar with a resize handle makes use of some NSSplitView delegate methods. Use the splitViewDelegate for any custom delegate implementations 22 | // you'd like to provide. 23 | @property (assign) id splitViewDelegate; 24 | 25 | + (BOOL)wasBorderedBar; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/KStatusBarController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KStatusBarView.h" 6 | @class KSplitView, KDocument; 7 | 8 | extern NSString * const KStatusBarDidChangeHiddenStateNotification; 9 | 10 | @interface KStatusBarController : NSViewController { 11 | IBOutlet KSplitView *splitView_; 12 | IBOutlet NSButton *toggleSplitViewButton_; 13 | KDocument *currentContents_; 14 | } 15 | 16 | @property(readonly) KStatusBarView *statusBarView; 17 | @property(nonatomic) BOOL isHidden; 18 | 19 | - (void)updateWithContents:(KDocument*)contents; 20 | 21 | - (IBAction)toggleSplitView:(id)sender; 22 | - (IBAction)toggleStatusBarVisibility:(id)sender; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /src/KPopUp.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KPopUp : NSWindow { 6 | BOOL closesWhenResignsKey_; 7 | BOOL animatesAppearance_; 8 | BOOL isClosing_; 9 | NSRect originalFrame_; // stored during animation 10 | void(^onClose_)(KPopUp*); 11 | } 12 | 13 | @property BOOL closesWhenResignsKey, 14 | escapeKeyTriggersClose, 15 | animatesAppearance; 16 | 17 | @property(copy) void(^onClose)(KPopUp*); 18 | 19 | + (KPopUp*)popupWithSize:(NSSize)size centeredInWindow:(NSWindow*)parentWindow; 20 | 21 | - (id)initWithSize:(NSSize)size centeredInWindow:(NSWindow*)parentWindow; 22 | - (id)initWithContentRect:(NSRect)contentRect; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /src/KASTViewerController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #include "ASTNode.h" 6 | 7 | // Important note: This uses a highly inefficient implementation and is only 8 | // meant to be used for debugging and development 9 | 10 | @class KDocument, KASTOutlineView; 11 | 12 | @interface KASTViewerController : NSObject { 14 | IBOutlet KASTOutlineView* outlineView_; 15 | NSTreeNode *rootTreeNode_; 16 | KDocument *representedDocument_; 17 | } 18 | 19 | @property(retain) KDocument *representedDocument; 20 | 21 | - (void)setRootTreeNodeWithASTNode:(kod::ASTNodePtr)astNode; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextField.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWStyledTextField.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 10 | 11 | @interface BWStyledTextField : NSTextField 12 | { 13 | 14 | } 15 | 16 | - (BOOL)hasGradient; 17 | - (void)setHasGradient:(BOOL)flag; 18 | - (NSColor *)startingColor; 19 | - (void)setStartingColor:(NSColor *)color; 20 | - (NSColor *)endingColor; 21 | - (void)setEndingColor:(NSColor *)color; 22 | 23 | - (NSColor *)solidColor; 24 | - (void)setSolidColor:(NSColor *)color; 25 | 26 | - (BOOL)hasShadow; 27 | - (void)setHasShadow:(BOOL)flag; 28 | - (BOOL)shadowIsBelow; 29 | - (void)setShadowIsBelow:(BOOL)flag; 30 | - (NSColor *)shadowColor; 31 | - (void)setShadowColor:(NSColor *)color; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTransparentTableViewIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTransparentTableViewIntegration.m 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 10 | #import "BWTransparentTableView.h" 11 | 12 | @implementation BWTransparentTableView ( BWTransparentTableViewIntegration ) 13 | 14 | - (void)addObject:(id)object toParent:(id)parent 15 | { 16 | IBDocument *document = [IBDocument documentForObject:parent]; 17 | 18 | [document addObject:object toParent:parent]; 19 | } 20 | 21 | - (void)removeObject:(id)object 22 | { 23 | IBDocument *document = [IBDocument documentForObject:object]; 24 | 25 | [document removeObject:object]; 26 | } 27 | 28 | - (void)ibTester 29 | { 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Headers/SUAppcast.h: -------------------------------------------------------------------------------- 1 | // 2 | // SUAppcast.h 3 | // Sparkle 4 | // 5 | // Created by Andy Matuschak on 3/12/06. 6 | // Copyright 2006 Andy Matuschak. All rights reserved. 7 | // 8 | 9 | #ifndef SUAPPCAST_H 10 | #define SUAPPCAST_H 11 | 12 | @class SUAppcastItem; 13 | @interface SUAppcast : NSObject { 14 | NSArray *items; 15 | NSString *userAgentString; 16 | id delegate; 17 | NSMutableData *incrementalData; 18 | } 19 | 20 | - (void)fetchAppcastFromURL:(NSURL *)url; 21 | - (void)setDelegate:delegate; 22 | - (void)setUserAgentString:(NSString *)userAgentString; 23 | 24 | - (NSArray *)items; 25 | 26 | @end 27 | 28 | @interface NSObject (SUAppcastDelegate) 29 | - (void)appcastDidFinishLoading:(SUAppcast *)appcast; 30 | - (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error; 31 | @end 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | Sparkle 9 | CFBundleIdentifier 10 | org.andymatuschak.Sparkle 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | Sparkle 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.5 Beta 6 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 313 23 | 24 | 25 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientBoxInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientBoxInspector.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 10 | #import "BWGradientBox.h" 11 | #import "BWGradientWell.h" 12 | 13 | @interface BWGradientBoxInspector : IBInspector 14 | { 15 | BWGradientBox *box; 16 | int fillPopupSelection; 17 | 18 | BWGradientWell *gradientWell; 19 | NSColorWell *colorWell; 20 | NSView *wellContainer; 21 | float largeViewHeight, smallViewHeight; 22 | } 23 | 24 | @property (nonatomic, retain) IBOutlet BWGradientWell *gradientWell; 25 | @property (nonatomic, retain) IBOutlet NSColorWell *colorWell; 26 | @property (nonatomic, retain) IBOutlet NSView *wellContainer; 27 | @property int fillPopupSelection; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // SUVersionComparisonProtocol.h 3 | // Sparkle 4 | // 5 | // Created by Andy Matuschak on 12/21/07. 6 | // Copyright 2007 Andy Matuschak. All rights reserved. 7 | // 8 | 9 | #ifndef SUVERSIONCOMPARISONPROTOCOL_H 10 | #define SUVERSIONCOMPARISONPROTOCOL_H 11 | 12 | /*! 13 | @protocol 14 | @abstract Implement this protocol to provide version comparison facilities for Sparkle. 15 | */ 16 | @protocol SUVersionComparison 17 | 18 | /*! 19 | @method 20 | @abstract An abstract method to compare two version strings. 21 | @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent. 22 | */ 23 | - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; 24 | 25 | @end 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWSelectableToolbarHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSelectableToolbarHelper.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 10 | 11 | @interface BWSelectableToolbarHelper : NSObject 12 | { 13 | NSMutableDictionary *contentViewsByIdentifier, *windowSizesByIdentifier; 14 | NSString *selectedIdentifier, *oldWindowTitle; 15 | NSSize initialIBWindowSize; 16 | BOOL isPreferencesToolbar; 17 | } 18 | 19 | @property (copy) NSMutableDictionary *contentViewsByIdentifier; 20 | @property (copy) NSMutableDictionary *windowSizesByIdentifier; 21 | @property (copy) NSString *selectedIdentifier; 22 | @property (copy) NSString *oldWindowTitle; 23 | @property (assign) NSSize initialIBWindowSize; 24 | @property (assign) BOOL isPreferencesToolbar; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWTokenFieldCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWTokenFieldCell.m 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 "BWTokenFieldCell.h" 10 | #import "BWTokenAttachmentCell.h" 11 | 12 | @implementation BWTokenFieldCell 13 | 14 | - (id)setUpTokenAttachmentCell:(NSTokenAttachmentCell *)aCell forRepresentedObject:(id)anObj 15 | { 16 | BWTokenAttachmentCell *attachmentCell = [[BWTokenAttachmentCell alloc] initTextCell:[aCell stringValue]]; 17 | 18 | [attachmentCell setRepresentedObject:anObj]; 19 | [attachmentCell setAttachment:[aCell attachment]]; 20 | [attachmentCell setControlSize:[self controlSize]]; 21 | [attachmentCell setTextColor:[NSColor blackColor]]; 22 | [attachmentCell setFont:[self font]]; 23 | 24 | return [attachmentCell autorelease]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/AST.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef KOD_AST_H_ 6 | #define KOD_AST_H_ 7 | 8 | #include "ASTNode.h" 9 | #include "common.h" 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | namespace kod { 16 | 17 | class AST; 18 | typedef std::tr1::shared_ptr ASTPtr; 19 | 20 | class AST { 21 | public: 22 | AST() {} 23 | ~AST() {} 24 | 25 | const ASTNodePtr &rootNode() const { return rootNode_; } 26 | bool setRootNode(ASTNodePtr rootNode) { 27 | // TODO(rsms): using CAS or spinlock 28 | h_atomic_barrier(); 29 | rootNode_ = rootNode; 30 | } 31 | 32 | protected: 33 | ASTNodePtr rootNode_; 34 | }; 35 | 36 | 37 | }; // namespace kod 38 | 39 | #endif // KOD_AST_H_ 40 | -------------------------------------------------------------------------------- /src/NSData-kod.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface NSData (Kod) 6 | 7 | // Returns an autoreleased string which will become invalid as soon as this data 8 | // is deallocated. |range| is in bytes. 9 | - (NSString*)weakStringWithEncoding:(NSStringEncoding)encoding 10 | range:(NSRange)range; 11 | 12 | - (NSString*)weakStringWithEncoding:(NSStringEncoding)encoding; 13 | 14 | // If outEncoding is not nil, a successful encoding will be assigned (or zero) 15 | - (NSString*)weakStringByGuessingEncoding:(NSStringEncoding*)outEncoding; 16 | 17 | - (NSStringEncoding)guessEncodingWithPeekByteLimit:(NSUInteger)peekByteLimit 18 | headOffset:(NSUInteger*)outHeadOffset; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarItemIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarItemIntegration.m 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 10 | #import "BWToolbarItem.h" 11 | #import "BWToolbarItemInspector.h" 12 | 13 | @implementation BWToolbarItem ( BWToolbarItemIntegration ) 14 | 15 | - (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths { 16 | [super ibPopulateKeyPaths:keyPaths]; 17 | 18 | [[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects:@"identifierString", nil]]; 19 | } 20 | 21 | - (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes { 22 | [super ibPopulateAttributeInspectorClasses:classes]; 23 | 24 | [classes addObject:[BWToolbarItemInspector class]]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/KASTViewerWindowController.mm: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KASTViewerWindowController.h" 6 | #import "KASTViewerController.h" 7 | #import "common.h" 8 | 9 | static KASTViewerWindowController *gSharedInstance_ = nil; 10 | 11 | @implementation KASTViewerWindowController 12 | 13 | @synthesize outlineViewController = outlineViewController_; 14 | 15 | + (KASTViewerWindowController*)sharedInstance { 16 | if (!gSharedInstance_) { 17 | KASTViewerWindowController *controller = 18 | [[self alloc] initWithWindowNibName:@"ast-viewer"]; 19 | if (h_casid(&gSharedInstance_, controller)) { 20 | [controller showWindow:self]; 21 | } 22 | [controller release]; 23 | } 24 | return gSharedInstance_; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/core/sudden_termination.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #ifndef K_CORE_SUDDEN_TERMINATION_H_ 6 | #define K_CORE_SUDDEN_TERMINATION_H_ 7 | 8 | #ifndef __OBJC__ 9 | #error This interface is currentl only supported by Objective-C code 10 | #endif 11 | 12 | // Increment the sudden termination counter. 13 | static inline void KSuddenTerminationDisallowIncr() { 14 | [[NSProcessInfo processInfo] disableSuddenTermination]; 15 | } 16 | 17 | // Decrement the sudden termination counter. When reaching 0, Kod might get 18 | // SIGKILLed by the kernel (instead of the regular "Quit" apple event). 19 | static inline void KSuddenTerminationDisallowDecr() { 20 | [[NSProcessInfo processInfo] enableSuddenTermination]; 21 | } 22 | 23 | #endif // K_CORE_SUDDEN_TERMINATION_H_ 24 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButtonIntegration.m 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 10 | #import "BWUnanchoredButton.h" 11 | 12 | @implementation BWUnanchoredButton ( BWUnanchoredButtonIntegration ) 13 | 14 | - (NSSize)ibMinimumSize 15 | { 16 | return NSMakeSize(0,22); 17 | } 18 | 19 | - (NSSize)ibMaximumSize 20 | { 21 | return NSMakeSize(100000,22); 22 | } 23 | 24 | - (IBInset)ibLayoutInset 25 | { 26 | IBInset inset; 27 | inset.bottom = 1; 28 | inset.right = 0; 29 | inset.top = 1; 30 | inset.left = 0; 31 | 32 | return inset; 33 | } 34 | 35 | - (NSInteger)ibBaselineCount 36 | { 37 | return 1; 38 | } 39 | 40 | - (CGFloat)ibBaselineAtIndex:(NSInteger)index 41 | { 42 | return 15; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/KClipView.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KClipView.h" 6 | #import "common.h" 7 | 8 | @implementation KClipView 9 | 10 | @synthesize allowsScrolling = allowsScrolling_; 11 | 12 | - (id)initWithFrame:(NSRect)frame { 13 | if ((self = [super initWithFrame:frame])) { 14 | [self setDrawsBackground:NO]; 15 | [self setCopiesOnScroll:NO]; 16 | allowsScrolling_ = YES; 17 | } 18 | return self; 19 | } 20 | 21 | 22 | - (void)scrollToPoint:(NSPoint)newOrigin { 23 | if (allowsScrolling_) 24 | [super scrollToPoint:newOrigin]; 25 | } 26 | 27 | 28 | - (BOOL)autoscroll:(NSEvent*)event { 29 | //DLOG("%@ autoscroll:%@", self, event); 30 | if (allowsScrolling_) 31 | return [super autoscroll:event]; 32 | return NO; 33 | } 34 | 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButtonIntegration.m 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 10 | #import "BWHyperlinkButton.h" 11 | #import "BWHyperlinkButtonInspector.h" 12 | 13 | @implementation BWHyperlinkButton (BWHyperlinkButtonIntegration) 14 | 15 | - (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths 16 | { 17 | [super ibPopulateKeyPaths:keyPaths]; 18 | 19 | [[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects:@"urlString", nil]]; 20 | } 21 | 22 | - (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes 23 | { 24 | [super ibPopulateAttributeInspectorClasses:classes]; 25 | 26 | [classes addObject:[BWHyperlinkButtonInspector class]]; 27 | } 28 | 29 | @end -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButton.m 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 "BWUnanchoredButton.h" 10 | #import "BWAnchoredButtonBar.h" 11 | #import "NSView+BWAdditions.h" 12 | 13 | @implementation BWUnanchoredButton 14 | 15 | - (id)initWithCoder:(NSCoder *)decoder; 16 | { 17 | if ((self = [super initWithCoder:decoder]) != nil) 18 | { 19 | if ([BWAnchoredButtonBar wasBorderedBar]) 20 | topAndLeftInset = NSMakePoint(0, 0); 21 | else 22 | topAndLeftInset = NSMakePoint(1, 1); 23 | } 24 | return self; 25 | } 26 | 27 | - (void)mouseDown:(NSEvent *)theEvent 28 | { 29 | [self bwBringToFront]; 30 | [super mouseDown:theEvent]; 31 | } 32 | 33 | - (NSRect)frame 34 | { 35 | NSRect frame = [super frame]; 36 | frame.size.height = 22; 37 | return frame; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButtonIntegration.m 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 10 | #import "BWAnchoredButton.h" 11 | 12 | @implementation BWAnchoredButton ( BWAnchoredButtonIntegration ) 13 | 14 | - (NSSize)ibMinimumSize 15 | { 16 | return NSMakeSize(0,24); 17 | } 18 | 19 | - (NSSize)ibMaximumSize 20 | { 21 | return NSMakeSize(100000,24); 22 | } 23 | 24 | - (IBInset)ibLayoutInset 25 | { 26 | IBInset inset; 27 | inset.bottom = 0; 28 | inset.right = 0; 29 | inset.top = topAndLeftInset.x; 30 | inset.left = topAndLeftInset.y; 31 | 32 | return inset; 33 | } 34 | 35 | - (NSInteger)ibBaselineCount 36 | { 37 | return 1; 38 | } 39 | 40 | - (CGFloat)ibBaselineAtIndex:(NSInteger)index 41 | { 42 | return 16; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/hdispatch.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "hdispatch.h" 6 | #import 7 | 8 | dispatch_source_t hd_timer_start(float interval, dispatch_queue_t queue, 9 | id block) { 10 | dispatch_source_t timer = 11 | dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, 12 | queue ? queue : dispatch_get_main_queue()); 13 | dispatch_source_set_event_handler(timer, (dispatch_block_t)block); 14 | dispatch_time_t startTime = dispatch_time(0, (int64_t)(interval*1000000.0)); 15 | uint64_t intervalNanosec = (uint64_t)(interval*1000000.0); 16 | dispatch_source_set_timer(timer, startTime, intervalNanosec, 0); 17 | dispatch_set_context(timer, (void*)timer); 18 | dispatch_resume(timer); 19 | return timer; 20 | } 21 | -------------------------------------------------------------------------------- /src/KFileTreeController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | @interface KFileTreeController : NSObject { 7 | NSOutlineView* outlineView_; 8 | NSTreeNode *rootTreeNode_; 9 | __weak NSArray *draggedNodes_; 10 | BOOL useGroupRowLook_; 11 | BOOL allowOnDropOnContainer_; 12 | BOOL allowBetweenDrop_; 13 | } 14 | 15 | @property(retain, nonatomic) NSTreeNode *rootTreeNode; 16 | 17 | - (id)initWithOutlineView:(NSOutlineView*)outlineView; 18 | 19 | - (NSTreeNode*)treeNodeFromDirectoryAtPath:(NSString*)path 20 | error:(NSError**)error; 21 | 22 | - (BOOL)setRootTreeNodeFromDirectoryAtPath:(NSString*)path 23 | error:(NSError**)error; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredPopUpButtonIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredPopUpButtonIntegration.m 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 10 | #import "BWAnchoredPopUpButton.h" 11 | 12 | @implementation BWAnchoredPopUpButton ( BWAnchoredPopUpButtonIntegration ) 13 | 14 | - (NSSize)ibMinimumSize 15 | { 16 | return NSMakeSize(0,24); 17 | } 18 | 19 | - (NSSize)ibMaximumSize 20 | { 21 | return NSMakeSize(100000,24); 22 | } 23 | 24 | - (IBInset)ibLayoutInset 25 | { 26 | IBInset inset; 27 | inset.bottom = 0; 28 | inset.right = 0; 29 | inset.top = topAndLeftInset.x; 30 | inset.left = topAndLeftInset.y; 31 | 32 | return inset; 33 | } 34 | 35 | - (NSInteger)ibBaselineCount 36 | { 37 | return 1; 38 | } 39 | 40 | - (CGFloat)ibBaselineAtIndex:(NSInteger)index 41 | { 42 | return 16; 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /src/NSView-kod.mm: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "NSView-kod.h" 6 | 7 | @implementation NSView (Kod) 8 | 9 | - (NSView*)findFirstParentViewOfKind:(Class)kind { 10 | NSView *parent = self; 11 | while ((parent = [parent superview]) && ![parent isKindOfClass:kind]) {} 12 | return parent; 13 | } 14 | 15 | 16 | - (NSView*)_findFirstSubviewOfKind:(Class)kind depth:(int)depth { 17 | if (depth > 0) { 18 | for (NSView *view in [self subviews]) { 19 | if ([view isKindOfClass:kind]) 20 | return view; 21 | if ((view = [view _findFirstSubviewOfKind:kind depth:depth-1])) 22 | return view; 23 | } 24 | } 25 | return nil; 26 | } 27 | 28 | - (NSView*)findFirstSubviewOfKind:(Class)kind { 29 | return [self _findFirstSubviewOfKind:kind depth:100]; 30 | } 31 | 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /deps/bwtoolkit/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.brandonwalkin.BWToolkit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleShortVersionString 20 | 1.2.5 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.2.5 25 | NSPrincipalClass 26 | BWToolkit 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/KFileTreeNodeData.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | // Represents a node in the file tree 6 | 7 | @interface KFileTreeNodeData : NSObject { 8 | @private 9 | NSURL *url_; 10 | NSString *name_; 11 | NSImage *image_; 12 | BOOL expandable_; 13 | BOOL selectable_; 14 | BOOL container_; 15 | } 16 | 17 | @property(readwrite, retain) NSURL *url; 18 | @property(readwrite, retain) NSString *name; 19 | @property(readwrite, retain) NSImage *image; 20 | @property(readwrite, getter=isExpandable) BOOL expandable; 21 | @property(readwrite, getter=isSelectable) BOOL selectable; 22 | @property(readwrite, getter=isContainer) BOOL container; 23 | 24 | - (id)initWithPath:(NSString *)path; 25 | + (KFileTreeNodeData*)fileTreeNodeDataWithPath:(NSString *)path; 26 | 27 | - (NSComparisonResult)compare:(id)other; 28 | 29 | @end 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/hobjc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Objective-C utilities 3 | * 4 | * Copyright 2010 Rasmus Andersson 5 | * Licensed under the MIT license. 6 | */ 7 | 8 | #ifndef H_OBJC_H_ 9 | #define H_OBJC_H_ 10 | #ifdef __OBJC__ 11 | 12 | #import 13 | 14 | /** 15 | * Atomically perform (dst = src, return olddst). 16 | * 17 | * Common pattern for retain/release: 18 | * 19 | * [h_objc_swap(&member_, [newobj retain]) release]; 20 | */ 21 | static inline id h_objc_swap(id volatile *dst, id src) { 22 | id old; 23 | while (1) { 24 | old = *dst; 25 | if (OSAtomicCompareAndSwapPtrBarrier(old, src, (void* volatile*)dst)) 26 | break; 27 | } 28 | return old; 29 | } 30 | 31 | 32 | /// Exchange dst with src, retaining src and releasing dst afterwards. 33 | static inline id h_objc_xch(id *dst, id src) { 34 | id old = *dst; 35 | *dst = [src retain]; 36 | [old release]; 37 | return old; 38 | } 39 | 40 | #endif // __OBJC__ 41 | #endif // H_OBJC_H_ 42 | -------------------------------------------------------------------------------- /src/KAppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import 6 | 7 | @class SUUpdater, KTerminalUsageWindowController; 8 | 9 | @interface KAppDelegate : NSObject { 10 | IBOutlet SUUpdater *sparkleUpdater_; 11 | IBOutlet NSMenu *syntaxModeMenu_; 12 | IBOutlet NSMenuItem *show80charsMenuItem_; 13 | IBOutlet NSMenuItem *coverBackgroundMenuItem_; 14 | KTerminalUsageWindowController *terminalUsageWindowController_; 15 | NSWindow *backgroundCoverWindow_; 16 | } 17 | 18 | - (IBAction)newWindow:(id)sender; 19 | - (IBAction)newDocument:(id)sender; // "New tab" 20 | - (IBAction)displayTerminalUsage:(id)sender; 21 | - (IBAction)displayAbout:(id)sender; 22 | - (IBAction)showColumnGuide:(id)sender; 23 | - (IBAction)coverBackground:(id)sender; 24 | 25 | - (void)_createBackgroundCoverWindow; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /src/KURLHandler.mm: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | #import "common.h" 7 | #import "KURLHandler.h" 8 | 9 | @implementation KURLHandler 10 | 11 | 12 | + (KURLHandler*)handler { 13 | return [[self new] autorelease]; 14 | } 15 | 16 | 17 | - (BOOL)canReadURL:(NSURL*)url { return NO; } 18 | - (BOOL)canWriteURL:(NSURL*)url { return NO; } 19 | 20 | 21 | - (void)readURL:(NSURL*)url ofType:(NSString*)typeName inTab:(KDocument*)tab{ 22 | NOTIMPLEMENTED(); 23 | } 24 | 25 | 26 | - (void)writeData:(NSData*)data 27 | ofType:(NSString*)typeName 28 | toURL:(NSURL*)url 29 | inTab:(KDocument*)tab 30 | forSaveOperation:(NSSaveOperationType)saveOperation 31 | originalURL:(NSURL*)absoluteOriginalContentsURL 32 | callback:(void(^)(NSError *err, NSDate *mtime))callback { 33 | NOTIMPLEMENTED(); 34 | } 35 | 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredButton.m 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 "BWAnchoredButton.h" 10 | #import "BWAnchoredButtonBar.h" 11 | #import "NSView+BWAdditions.h" 12 | 13 | @implementation BWAnchoredButton 14 | 15 | @synthesize isAtLeftEdgeOfBar; 16 | @synthesize isAtRightEdgeOfBar; 17 | 18 | - (id)initWithCoder:(NSCoder *)decoder; 19 | { 20 | if ((self = [super initWithCoder:decoder]) != nil) 21 | { 22 | if ([BWAnchoredButtonBar wasBorderedBar]) 23 | topAndLeftInset = NSMakePoint(0, 0); 24 | else 25 | topAndLeftInset = NSMakePoint(1, 1); 26 | } 27 | return self; 28 | } 29 | 30 | - (void)mouseDown:(NSEvent *)theEvent 31 | { 32 | [self bwBringToFront]; 33 | [super mouseDown:theEvent]; 34 | } 35 | 36 | - (NSRect)frame 37 | { 38 | NSRect frame = [super frame]; 39 | frame.size.height = 24; 40 | return frame; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWAnchoredPopUpButton.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWAnchoredPopUpButton.m 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 "BWAnchoredPopUpButton.h" 10 | #import "BWAnchoredButtonBar.h" 11 | #import "NSView+BWAdditions.h" 12 | 13 | @implementation BWAnchoredPopUpButton 14 | 15 | @synthesize isAtLeftEdgeOfBar; 16 | @synthesize isAtRightEdgeOfBar; 17 | 18 | - (id)initWithCoder:(NSCoder *)decoder; 19 | { 20 | if ((self = [super initWithCoder:decoder]) != nil) 21 | { 22 | if ([BWAnchoredButtonBar wasBorderedBar]) 23 | topAndLeftInset = NSMakePoint(0, 0); 24 | else 25 | topAndLeftInset = NSMakePoint(1, 1); 26 | } 27 | return self; 28 | } 29 | 30 | - (void)mouseDown:(NSEvent *)theEvent 31 | { 32 | [self bwBringToFront]; 33 | [super mouseDown:theEvent]; 34 | } 35 | 36 | - (NSRect)frame 37 | { 38 | NSRect frame = [super frame]; 39 | frame.size.height = 24; 40 | return frame; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /src/KURLHandler.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | #import "KDocument.h" 7 | 8 | /*! 9 | * Lives in the shared KDocumentController instance's urlHandlers_ dict, 10 | * where URI schemes are mapped to KURLHandler objects. 11 | */ 12 | @interface KURLHandler : NSObject { 13 | } 14 | 15 | + (KURLHandler*)handler; 16 | 17 | - (BOOL)canReadURL:(NSURL*)url; 18 | - (BOOL)canWriteURL:(NSURL*)url; 19 | 20 | - (void)readURL:(NSURL*)absoluteURL 21 | ofType:(NSString*)typeName 22 | inTab:(KDocument*)tab; 23 | 24 | - (void)writeData:(NSData*)data 25 | ofType:(NSString*)typeName 26 | toURL:(NSURL*)url 27 | inTab:(KDocument*)tab 28 | forSaveOperation:(NSSaveOperationType)saveOperation 29 | originalURL:(NSURL*)absoluteOriginalContentsURL 30 | callback:(void(^)(NSError *err, NSDate *mtime))callback; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWStyledTextFieldIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWStyledTextFieldIntegration.m 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 10 | #import "BWStyledTextField.h" 11 | #import "BWStyledTextFieldInspector.h" 12 | 13 | @implementation BWStyledTextField (BWStyledTextFieldIntegration) 14 | 15 | - (void)ibPopulateKeyPaths:(NSMutableDictionary *)keyPaths 16 | { 17 | [super ibPopulateKeyPaths:keyPaths]; 18 | 19 | [[keyPaths objectForKey:IBAttributeKeyPaths] addObjectsFromArray:[NSArray arrayWithObjects:@"shadowIsBelow", @"hasShadow", @"shadowColor", @"startingColor", @"endingColor", @"hasGradient", @"solidColor", nil]]; 20 | } 21 | 22 | - (void)ibPopulateAttributeInspectorClasses:(NSMutableArray *)classes 23 | { 24 | [super ibPopulateAttributeInspectorClasses:classes]; 25 | 26 | [classes addObject:[BWStyledTextFieldInspector class]]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /src/KTextField.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | 6 | @class KTextFieldCell; 7 | 8 | // An implementation of NSTextField that is designed to work with 9 | // StyledTextFieldCell. Provides methods to redraw the field when cell 10 | // decorations have changed and overrides |mouseDown:| to properly handle clicks 11 | // in sections of the cell with decorations. 12 | @interface KTextField : NSTextField { 13 | } 14 | 15 | // Repositions and redraws the field editor. Call this method when the cell's 16 | // text frame has changed (whenever changing cell decorations). 17 | - (void)resetFieldEditorFrameIfNeeded; 18 | 19 | // Returns the amount of the field's width which is not being taken up 20 | // by the text contents. May be negative if the contents are large 21 | // enough to scroll. 22 | - (CGFloat)availableDecorationWidth; 23 | 24 | - (KTextFieldCell*)kTextFieldCell; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /src/KLocationBarController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "KAutocompleteTextField.h" 6 | 7 | @class CTTabContents; 8 | 9 | @interface KLocationBarController : NSObject { 10 | // weak, owned by toolbar controller 11 | __weak KAutocompleteTextField *textField_; 12 | 13 | // state stored while an edit is active 14 | NSAttributedString *originalAttributedStringValue_; 15 | CTTabContents *currentContents_; 16 | } 17 | 18 | @property(nonatomic, readonly) NSURL *absoluteURL; 19 | 20 | - (id)initWithAutocompleteTextField:(KAutocompleteTextField*)atf; 21 | 22 | // called by KToolbarController when the contents changed 23 | - (void)contentsDidChange:(CTTabContents*)contents; 24 | 25 | - (void)recordStateWithContents:(CTTabContents*)contents; 26 | - (void)restoreState; 27 | 28 | - (void)commitEditing:(NSUInteger)modifierFlags; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /src/NSCharacterSet-kod.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "NSCharacterSet-kod.h" 6 | #import "hcommon.h" 7 | 8 | @implementation NSCharacterSet (Kod) 9 | 10 | static NSCharacterSet * gWhitespaceAndCommaCharacterSet_; 11 | static NSCharacterSet * gSlashCharacterSet_; 12 | 13 | + (NSCharacterSet*)whitespaceAndCommaCharacterSet { 14 | if (!gWhitespaceAndCommaCharacterSet_) { 15 | NSCharacterSet *cs = 16 | [NSCharacterSet characterSetWithCharactersInString:@", "]; 17 | h_casid(&gWhitespaceAndCommaCharacterSet_, cs); 18 | } 19 | return gWhitespaceAndCommaCharacterSet_; 20 | } 21 | 22 | + (NSCharacterSet*)slashCharacterSet { 23 | if (!gSlashCharacterSet_) { 24 | NSCharacterSet *cs = 25 | [NSCharacterSet characterSetWithCharactersInString:@"/"]; 26 | h_casid(&gSlashCharacterSet_, cs); 27 | } 28 | return gSlashCharacterSet_; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWGradientWellColorWell.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWGradientWellColorWell.m 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 "BWGradientWellColorWell.h" 10 | 11 | static NSColor *borderColor; 12 | static float bezelThickness = 2; 13 | 14 | @implementation BWGradientWellColorWell 15 | 16 | @synthesize gradientWell; 17 | 18 | + (void)initialize 19 | { 20 | borderColor = [[NSColor colorWithCalibratedWhite:(66.0 / 255.0) alpha:1] retain]; 21 | } 22 | 23 | - (void)drawRect:(NSRect)rect 24 | { 25 | [super drawRect:rect]; 26 | 27 | [borderColor set]; 28 | NSFrameRect(self.bounds); 29 | 30 | [borderColor drawSwatchInRect:NSInsetRect(self.bounds, bezelThickness + 1, bezelThickness + 1)]; 31 | 32 | [[self color] drawSwatchInRect:NSInsetRect(self.bounds, bezelThickness + 2, bezelThickness + 2)]; 33 | } 34 | 35 | - (void)setColor:(NSColor *)color 36 | { 37 | [gradientWell setNeedsDisplay:YES]; 38 | 39 | [super setColor:color]; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWHyperlinkButtonCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWHyperlinkButtonCell.m 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 "BWHyperlinkButtonCell.h" 10 | 11 | @interface NSCell (BWPrivate) 12 | - (NSDictionary *)_textAttributes; 13 | @end 14 | 15 | @implementation BWHyperlinkButtonCell 16 | 17 | - (NSDictionary *)_textAttributes 18 | { 19 | NSMutableDictionary *attributes = [[[NSMutableDictionary alloc] init] autorelease]; 20 | [attributes addEntriesFromDictionary:[super _textAttributes]]; 21 | [attributes setObject:[NSColor blueColor] forKey:NSForegroundColorAttributeName]; 22 | [attributes setObject:[NSNumber numberWithInt:NSSingleUnderlineStyle] forKey:NSUnderlineStyleAttributeName]; 23 | 24 | return attributes; 25 | } 26 | 27 | - (void)drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView 28 | { 29 | 30 | } 31 | 32 | - (void)setBordered:(BOOL)flag 33 | { 34 | 35 | } 36 | 37 | - (BOOL)isBordered 38 | { 39 | return YES; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /src/NSString-intern.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2010-2011, Rasmus Andersson. All rights reserved. 2 | // Use of this source code is governed by a MIT-style license that can be 3 | // found in the LICENSE file. 4 | 5 | #import "NSString-intern.h" 6 | #import 7 | 8 | @implementation NSString (intern) 9 | 10 | static NSMutableDictionary *internedStrings_; 11 | 12 | + (void)load { 13 | internedStrings_ = [NSMutableDictionary new]; 14 | } 15 | 16 | + (NSString*)internedStringWithString:(NSString*)str { 17 | if (!str) return str; 18 | OSMemoryBarrier(); 19 | NSString *interned = [internedStrings_ objectForKey:str]; 20 | if (!interned) { 21 | [internedStrings_ setObject:str forKey:str]; 22 | interned = str; 23 | //NSLog(@"[NSString intern] created %@", str); 24 | } 25 | //else if (str == interned) NSLog(@"[NSString intern] same %@", str); 26 | //else NSLog(@"[NSString intern] found %@", str); 27 | return interned; 28 | } 29 | 30 | 31 | - (NSString*)internedString { 32 | return [isa internedStringWithString:self]; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowFontsItem.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarShowFontsItem.m 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 "BWToolbarShowFontsItem.h" 10 | 11 | @implementation BWToolbarShowFontsItem 12 | 13 | - (NSImage *)image 14 | { 15 | NSBundle *bundle = [NSBundle bundleForClass:[BWToolbarShowFontsItem class]]; 16 | NSImage *image = [[[NSImage alloc] initWithContentsOfFile:[bundle pathForImageResource:@"ToolbarItemFonts.tiff"]] autorelease]; 17 | 18 | return image; 19 | } 20 | 21 | - (NSString *)itemIdentifier 22 | { 23 | return @"BWToolbarShowFontsItem"; 24 | } 25 | 26 | - (NSString *)label 27 | { 28 | return @"Fonts"; 29 | } 30 | 31 | - (NSString *)paletteLabel 32 | { 33 | return @"Fonts"; 34 | } 35 | 36 | - (id)target 37 | { 38 | return [NSApplication sharedApplication]; 39 | } 40 | 41 | - (SEL)action 42 | { 43 | return @selector(orderFrontFontPanel:); 44 | } 45 | 46 | - (NSString *)toolTip 47 | { 48 | return @"Show Font Panel"; 49 | } 50 | 51 | @end -------------------------------------------------------------------------------- /deps/bwtoolkit/BWToolbarShowColorsItem.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolbarShowColorsItem.m 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 "BWToolbarShowColorsItem.h" 10 | 11 | @implementation BWToolbarShowColorsItem 12 | 13 | - (NSImage *)image 14 | { 15 | NSBundle *bundle = [NSBundle bundleForClass:[BWToolbarShowColorsItem class]]; 16 | NSImage *image = [[[NSImage alloc] initWithContentsOfFile:[bundle pathForImageResource:@"ToolbarItemColors.tiff"]] autorelease]; 17 | 18 | return image; 19 | } 20 | 21 | - (NSString *)itemIdentifier 22 | { 23 | return @"BWToolbarShowColorsItem"; 24 | } 25 | 26 | - (NSString *)label 27 | { 28 | return @"Colors"; 29 | } 30 | 31 | - (NSString *)paletteLabel 32 | { 33 | return @"Colors"; 34 | } 35 | 36 | - (id)target 37 | { 38 | return [NSApplication sharedApplication]; 39 | } 40 | 41 | - (SEL)action 42 | { 43 | return @selector(orderFrontColorPanel:); 44 | } 45 | 46 | - (NSString *)toolTip 47 | { 48 | return @"Show Color Panel"; 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /deps/Sparkle.framework/Versions/A/Resources/License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2006 Andy Matuschak 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /deps/bwtoolkit/BWUnanchoredButtonContainerIntegration.m: -------------------------------------------------------------------------------- 1 | // 2 | // BWUnanchoredButtonContainerIntegration.m 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 10 | #import "BWUnanchoredButtonContainer.h" 11 | #import "BWUnanchoredButton.h" 12 | 13 | @implementation BWUnanchoredButtonContainer ( BWUnanchoredButtonContainerIntegration ) 14 | 15 | - (NSSize)ibMinimumSize 16 | { 17 | return NSMakeSize(45,22); 18 | } 19 | 20 | - (NSSize)ibMaximumSize 21 | { 22 | return NSMakeSize(45,22); 23 | } 24 | 25 | - (BOOL)ibIsChildInitiallySelectable:(id)child 26 | { 27 | return NO; 28 | } 29 | 30 | - (NSArray *)ibDefaultChildren 31 | { 32 | return [self subviews]; 33 | } 34 | 35 | - (NSView *)ibDesignableContentView 36 | { 37 | return self; 38 | } 39 | 40 | - (IBInset)ibLayoutInset 41 | { 42 | IBInset inset; 43 | 44 | inset.left = 0; 45 | inset.top = 1; 46 | inset.bottom = 1; 47 | inset.right = 0; 48 | 49 | return inset; 50 | } 51 | 52 | @end 53 | --------------------------------------------------------------------------------