├── .gitignore ├── Frameworks ├── BGHUDAppKit.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── BGHUDAppKit │ │ │ ├── Headers │ │ │ ├── BGHUDStepperCell.h │ │ │ ├── BGHUDTableCornerView.h │ │ │ ├── NSTokenAttachment.h │ │ │ ├── BGGradientTheme.h │ │ │ ├── NSTokenAttachmentCell.h │ │ │ ├── BGHUDTabViewItem.h │ │ │ ├── BGHUDGeometry.h │ │ │ ├── BGHUDTabView.h │ │ │ ├── BGHUDLabel.h │ │ │ ├── BGHUDScrollView.h │ │ │ ├── BGHUDTableViewHeaderCell.h │ │ │ ├── BGHUDTextFieldCell.h │ │ │ ├── BGHUDSearchFieldCell.h │ │ │ ├── BGHUDProgressIndicator.h │ │ │ ├── BGHUDSecureTextFieldCell.h │ │ │ ├── BGHUDPopUpButtonCell.h │ │ │ ├── BGHUDTableView.h │ │ │ ├── BGHUDOutlineView.h │ │ │ ├── BGHUDColorWell.h │ │ │ ├── BGHUDTokenFieldCell.h │ │ │ ├── BGHUDComboBoxCell.h │ │ │ ├── BGHUDSegmentedCell.h │ │ │ ├── BGThemeManager.h │ │ │ ├── BGHUDTokenAttachmentCell.h │ │ │ ├── BGHUDSliderCell.h │ │ │ ├── BGHUDButtonCell.h │ │ │ ├── BGHUDScroller.h │ │ │ ├── BGHUDAppKit.h │ │ │ ├── BGHUDBox.h │ │ │ ├── BGHUDView.h │ │ │ └── BGTheme.h │ │ │ └── Resources │ │ │ ├── Info.plist │ │ │ └── README │ ├── Headers │ ├── Resources │ └── BGHUDAppKit └── BWToolkitFramework.framework │ ├── Versions │ ├── Current │ └── A │ │ ├── BWToolkitFramework │ │ ├── Resources │ │ ├── ToolbarItemFonts.tiff │ │ ├── ToolbarItemColors.tiff │ │ ├── ButtonBarPullDownArrow.pdf │ │ ├── TexturedSliderThumbN.tiff │ │ ├── TexturedSliderThumbP.tiff │ │ ├── TransparentPopUpFillN.tiff │ │ ├── TransparentPopUpFillP.tiff │ │ ├── TransparentPopUpLeftN.tiff │ │ ├── TransparentPopUpLeftP.tiff │ │ ├── Library-SheetController.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 │ │ ├── TexturedSliderSpeakerLoud.png │ │ ├── TexturedSliderSpeakerQuiet.png │ │ ├── TexturedSliderTrackRight.tiff │ │ ├── TransparentScrollerKnobLeft.tif │ │ ├── TransparentScrollerKnobTop.tif │ │ ├── TransparentScrollerSlotLeft.tif │ │ ├── TransparentScrollerSlotTop.tif │ │ ├── TransparentSliderTrackFill.tiff │ │ ├── TransparentSliderTrackLeft.tiff │ │ ├── GradientSplitViewDimpleBitmap.tif │ │ ├── GradientSplitViewDimpleVector.pdf │ │ ├── TransparentScrollerKnobBottom.tif │ │ ├── TransparentScrollerKnobRight.tif │ │ ├── TransparentScrollerSlotBottom.tif │ │ ├── TransparentScrollerSlotRight.tif │ │ ├── TransparentSliderTrackRight.tiff │ │ ├── TransparentPopUpPullDownRightN.tif │ │ ├── TransparentPopUpPullDownRightP.tif │ │ ├── TransparentSliderTriangleThumbN.tiff │ │ ├── TransparentSliderTriangleThumbP.tiff │ │ ├── TransparentScrollerKnobHorizontalFill.tif │ │ ├── TransparentScrollerKnobVerticalFill.tif │ │ ├── TransparentScrollerSlotHorizontalFill.tif │ │ ├── TransparentScrollerSlotVerticalFill.tif │ │ ├── Info.plist │ │ └── License.rtf │ │ └── Headers │ │ ├── BWTokenField.h │ │ ├── BWInsetTextField.h │ │ ├── BWTokenFieldCell.h │ │ ├── BWTransparentButton.h │ │ ├── BWTransparentSlider.h │ │ ├── NSView+BWAdditions.h │ │ ├── BWTransparentCheckbox.h │ │ ├── BWAnchoredButtonCell.h │ │ ├── BWHyperlinkButtonCell.h │ │ ├── BWTransparentTableView.h │ │ ├── BWToolbarItem.h │ │ ├── BWToolbarShowColorsItem.h │ │ ├── BWToolbarShowFontsItem.h │ │ ├── BWTransparentScrollView.h │ │ ├── BWTransparentPopUpButton.h │ │ ├── BWUnanchoredButton.h │ │ ├── NSApplication+BWAdditions.h │ │ ├── BWAnchoredPopUpButtonCell.h │ │ ├── BWTransparentScroller.h │ │ ├── BWTransparentSliderCell.h │ │ ├── BWTransparentTextFieldCell.h │ │ ├── BWTransparentPopUpButtonCell.h │ │ ├── BWTransparentButtonCell.h │ │ ├── BWTransparentTableViewCell.h │ │ ├── BWTokenAttachmentCell.h │ │ ├── BWTransparentCheckboxCell.h │ │ ├── BWUnanchoredButtonCell.h │ │ ├── BWHyperlinkButton.h │ │ ├── NSWindow+BWAdditions.h │ │ ├── BWTexturedSliderCell.h │ │ ├── BWAnchoredButton.h │ │ ├── BWAnchoredPopUpButton.h │ │ ├── NSTokenAttachment.h │ │ ├── NSImage+BWAdditions.h │ │ ├── BWTexturedSlider.h │ │ ├── BWStyledTextFieldCell.h │ │ ├── NSColor+BWAdditions.h │ │ ├── BWGradientBox.h │ │ ├── BWAnchoredButtonBar.h │ │ ├── BWStyledTextField.h │ │ ├── BWSheetController.h │ │ ├── BWSelectableToolbar.h │ │ ├── BWSplitView.h │ │ ├── BWToolkitFramework.h │ │ └── NSTokenAttachmentCell.h │ ├── Headers │ ├── Resources │ └── BWToolkitFramework ├── Resources ├── Colors.icns ├── hud-prefs.png ├── magnifier.png ├── hud-prefs@2x.png ├── magnifier@2x.png ├── English.lproj │ ├── InfoPlist.strings │ └── MainMenu.nib │ │ └── keyedobjects.nib └── DefaultPatterns.plist ├── Colors.xcodeproj ├── TemplateIcon.icns ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── jason.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcuserdata │ └── jason.xcuserdatad │ │ ├── xcschemes │ │ ├── xcschememanagement.plist │ │ └── Colors.xcscheme │ │ └── xcdebugger │ │ └── Breakpoints.xcbkptlist ├── matt.pbxuser └── project.pbxproj ├── Colors_Prefix.pch ├── Classes ├── MPTidbits.h ├── NSCollections+MPTidbits.h ├── NSString+MPTidbits.h ├── NSCollections+MPTidbits.m ├── NSString+MPTidbits.m ├── CController.h ├── NSColor+CAdditions.h ├── CPatternController.h ├── CController.m ├── CPatternController.m └── NSColor+CAdditions.m ├── main.m ├── Info.plist └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build 3 | 4 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/BGHUDAppKit: -------------------------------------------------------------------------------- 1 | Versions/Current/BGHUDAppKit -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/BWToolkitFramework: -------------------------------------------------------------------------------- 1 | Versions/Current/BWToolkitFramework -------------------------------------------------------------------------------- /Resources/Colors.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/Colors.icns -------------------------------------------------------------------------------- /Resources/hud-prefs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/hud-prefs.png -------------------------------------------------------------------------------- /Resources/magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/magnifier.png -------------------------------------------------------------------------------- /Resources/hud-prefs@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/hud-prefs@2x.png -------------------------------------------------------------------------------- /Resources/magnifier@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/magnifier@2x.png -------------------------------------------------------------------------------- /Colors.xcodeproj/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Colors.xcodeproj/TemplateIcon.icns -------------------------------------------------------------------------------- /Resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /Resources/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Resources/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/BGHUDAppKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BGHUDAppKit.framework/Versions/A/BGHUDAppKit -------------------------------------------------------------------------------- /Colors_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Colors' target in the 'Colors' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/BWToolkitFramework -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemFonts.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ToolbarItemColors.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/ButtonBarPullDownArrow.pdf -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderThumbP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpFillP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpLeftP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/Library-SheetController.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoLarge.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderPhotoSmall.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackFill.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackLeft.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonFillP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonLeftP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentButtonRightP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOffP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentCheckboxOnP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpRightP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderThumbP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerLoud.png -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderSpeakerQuiet.png -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TexturedSliderTrackRight.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobLeft.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobTop.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotLeft.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotTop.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackFill.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackLeft.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleBitmap.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/GradientSplitViewDimpleVector.pdf -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobBottom.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobRight.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotBottom.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotRight.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTrackRight.tiff -------------------------------------------------------------------------------- /Colors.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Colors.xcodeproj/project.xcworkspace/xcuserdata/jason.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Colors.xcodeproj/project.xcworkspace/xcuserdata/jason.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightN.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentPopUpPullDownRightP.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbN.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentSliderTriangleThumbP.tiff -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobHorizontalFill.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerKnobVerticalFill.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotHorizontalFill.tif -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/13bold/Colors/HEAD/Frameworks/BWToolkitFramework.framework/Versions/A/Resources/TransparentScrollerSlotVerticalFill.tif -------------------------------------------------------------------------------- /Classes/MPTidbits.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MPTidbits.h 3 | * MPTidbits 4 | * 5 | * Created by Matt Patenaude on 12/22/08. 6 | * Copyright 2008 Matt Patenaude. All rights reserved. 7 | * 8 | */ 9 | 10 | #import "NSString+MPTidbits.h" 11 | #import "NSCollections+MPTidbits.h" -------------------------------------------------------------------------------- /main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 3/23/08. 6 | // Copyright __MyCompanyName__ 2008. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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)bringToFront; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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)isOnLeopard; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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)resizeToSize:(NSSize)newSize animate:(BOOL)animateFlag; 14 | - (BOOL)isTextured; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDStepperCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDStepperCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 4/6/09. 6 | // Copyright 2009 none. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "BGThemeManager.h" 11 | 12 | @interface BGHUDStepperCell : NSStepperCell { 13 | 14 | NSString *themeKey; 15 | int topButtonFlag; 16 | int bottomButtonFlag; 17 | } 18 | 19 | @property (retain) NSString *themeKey; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTableCornerView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTableCornerView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/29/08. 6 | // Copyright 2008 none. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "BGThemeManager.h" 11 | 12 | @interface BGHUDTableCornerView : NSView { 13 | 14 | NSString *themeKey; 15 | } 16 | 17 | @property (retain) NSString *themeKey; 18 | 19 | - (id)initWithThemeKey:(NSString *)key; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Classes/NSCollections+MPTidbits.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSCollections+MPTidbits.h 3 | // MPTidbits 4 | // 5 | // Created by Matt Patenaude on 12/22/08. 6 | // Copyright 2008 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSArray(MPTidbits) 13 | 14 | - (BOOL)isEmpty; 15 | 16 | @end 17 | 18 | @interface NSDictionary(MPTidbits) 19 | 20 | - (BOOL)isEmpty; 21 | - (BOOL)containsKey:(NSString *)aKey; 22 | - (BOOL)containsKey:(NSString *)aKey allowEmptyValue:(BOOL)allowEmpty; 23 | 24 | @end 25 | 26 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Classes/NSString+MPTidbits.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+MPTidbits.h 3 | // MPTidbits 4 | // 5 | // Created by Matt Patenaude on 12/22/08. 6 | // Copyright 2008 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSString(MPTidbits) 13 | 14 | - (BOOL)isEmpty; 15 | - (BOOL)isEmptyIgnoringWhitespace:(BOOL)ignoreWhitespace; 16 | - (NSString *)stringByTrimmingWhitespace; 17 | 18 | @end 19 | 20 | @interface NSMutableString(MPTidbits) 21 | 22 | - (void)trimCharactersInSet:(NSCharacterSet *)aCharacterSet; 23 | - (void)trimWhitespace; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Colors.xcodeproj/xcuserdata/jason.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Colors.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 8D1107260486CEB800E47090 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 *)tintedImageWithColor:(NSColor *)tint; 15 | 16 | // Rotate an image 90 degrees clockwise or counterclockwise 17 | - (NSImage *)rotateImage90DegreesClockwise:(BOOL)clockwise; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | NSMutableDictionary *previousAttributes; 17 | } 18 | 19 | @property BOOL shadowIsBelow, hasShadow, hasGradient; 20 | @property (nonatomic, retain) NSColor *shadowColor, *startingColor, *endingColor, *solidColor; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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)drawPixelThickLineAtPosition:(int)posInPixels withInset:(int)insetInPixels inRect:(NSRect)aRect inView:(NSView *)view horizontal:(BOOL)isHorizontal flip:(BOOL)shouldFlip; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Colors.xcodeproj/xcuserdata/jason.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | BGHUDAppKit 9 | CFBundleIdentifier 10 | com.binarymethod.BGHUDAppKit 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | NSPrincipalClass 20 | BGHUDAppKit 21 | 22 | 23 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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; 18 | } 19 | 20 | @property (nonatomic, retain) NSColor *fillStartingColor, *fillEndingColor, *fillColor, *topBorderColor, *bottomBorderColor; 21 | @property float topInsetAlpha, bottomInsetAlpha; 22 | @property BOOL hasTopBorder, hasBottomBorder, hasGradient; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/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.2 19 | NSPrincipalClass 20 | BWToolkit 21 | 22 | 23 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/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 | -------------------------------------------------------------------------------- /Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | Colors 11 | CFBundleIdentifier 12 | net.mattpat.Colors 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.10 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSheetController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSheetController.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 BWSheetController : NSObject 12 | { 13 | NSWindow *sheet; 14 | NSWindow *parentWindow; 15 | id delegate; 16 | } 17 | 18 | @property (nonatomic, retain) IBOutlet NSWindow *sheet, *parentWindow; 19 | @property (nonatomic, retain) IBOutlet id delegate; 20 | 21 | - (IBAction)openSheet:(id)sender; 22 | - (IBAction)closeSheet:(id)sender; 23 | - (IBAction)messageDelegateAndCloseSheet:(id)sender; 24 | 25 | // The optional delegate should implement the method: 26 | // - (BOOL)shouldCloseSheet:(id)sender 27 | // Return YES if you want the sheet to close after the button click, NO if it shouldn't close. The sender 28 | // object is the button that requested the close. This is helpful because in the event that there are multiple buttons 29 | // hooked up to the messageDelegateAndCloseSheet: method, you can distinguish which button called the method. 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Classes/NSCollections+MPTidbits.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSCollections+MPTidbits.m 3 | // MPTidbits 4 | // 5 | // Created by Matt Patenaude on 12/22/08. 6 | // Copyright 2008 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import "NSCollections+MPTidbits.h" 10 | #import "NSString+MPTidbits.h" 11 | 12 | 13 | @implementation NSArray(MPTidbits) 14 | 15 | - (BOOL)isEmpty 16 | { 17 | return ([self count] == 0); 18 | } 19 | 20 | @end 21 | 22 | @implementation NSDictionary(MPTidbits) 23 | 24 | - (BOOL)isEmpty 25 | { 26 | return ([self count] == 0); 27 | } 28 | - (BOOL)containsKey:(NSString *)aKey 29 | { 30 | return [self containsKey:aKey allowEmptyValue:YES]; 31 | } 32 | - (BOOL)containsKey:(NSString *)aKey allowEmptyValue:(BOOL)allowEmpty 33 | { 34 | BOOL keyExists = [[self allKeys] containsObject:aKey]; 35 | if (keyExists) 36 | { 37 | if (allowEmpty) 38 | return YES; 39 | else 40 | { 41 | id obj = [self objectForKey:aKey]; 42 | if ([obj isEqual:[NSNull null]]) 43 | return NO; 44 | if ([obj respondsToSelector:@selector(isEmpty)] && [obj isEmpty]) 45 | return NO; 46 | return YES; 47 | } 48 | } 49 | return NO; 50 | } 51 | 52 | @end 53 | 54 | -------------------------------------------------------------------------------- /Classes/NSString+MPTidbits.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+MPTidbits.m 3 | // MPTidbits 4 | // 5 | // Created by Matt Patenaude on 12/22/08. 6 | // Copyright 2008 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import "NSString+MPTidbits.h" 10 | 11 | 12 | @implementation NSString(MPTidbits) 13 | 14 | - (BOOL)isEmpty 15 | { 16 | return [self isEmptyIgnoringWhitespace:YES]; 17 | } 18 | - (BOOL)isEmptyIgnoringWhitespace:(BOOL)ignoreWhitespace 19 | { 20 | NSString *toCheck = (ignoreWhitespace) ? [self stringByTrimmingWhitespace] : self; 21 | return [toCheck isEqualToString:@""]; 22 | } 23 | - (NSString *)stringByTrimmingWhitespace 24 | { 25 | return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 26 | } 27 | 28 | @end 29 | 30 | @implementation NSMutableString(MPTidbits) 31 | 32 | - (void)trimCharactersInSet:(NSCharacterSet *)aCharacterSet 33 | { 34 | // trim front 35 | NSRange frontRange = NSMakeRange(0, 1); 36 | while ([aCharacterSet characterIsMember:[self characterAtIndex:0]]) 37 | [self deleteCharactersInRange:frontRange]; 38 | 39 | // trim back 40 | while ([aCharacterSet characterIsMember:[self characterAtIndex:([self length] - 1)]]) 41 | [self deleteCharactersInRange:NSMakeRange(([self length] - 1), 1)]; 42 | } 43 | - (void)trimWhitespace 44 | { 45 | [self trimCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; 46 | } 47 | 48 | @end 49 | 50 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSelectableToolbar.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSelectableToolbar.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 | @class BWSelectableToolbarHelper; 12 | 13 | // Notification that gets sent when a toolbar item has been clicked. You can get the button that was clicked by getting the object 14 | // for the key @"BWClickedItem" in the supplied userInfo dictionary. 15 | extern NSString * const BWSelectableToolbarItemClickedNotification; 16 | 17 | @interface BWSelectableToolbar : NSToolbar 18 | { 19 | BWSelectableToolbarHelper *helper; 20 | NSMutableArray *itemIdentifiers; 21 | NSMutableDictionary *itemsByIdentifier, *enabledByIdentifier; 22 | BOOL inIB; 23 | 24 | // For the IB inspector 25 | int selectedIndex; 26 | BOOL isPreferencesToolbar; 27 | } 28 | 29 | // Call one of these methods to set the active tab. 30 | - (void)setSelectedItemIdentifier:(NSString *)itemIdentifier; // Use if you want an action in the tabbed window to change the tab. 31 | - (void)setSelectedItemIdentifierWithoutAnimation:(NSString *)itemIdentifier; // Use if you want to show the window with a certain item selected. 32 | 33 | // Programmatically disable or enable a toolbar item. 34 | - (void)setEnabled:(BOOL)flag forIdentifier:(NSString *)itemIdentifier; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Classes/CController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CController.h 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | // Forward declarations 13 | @class CPatternController; 14 | 15 | // Pasteboard functions 16 | void CCopyStringToPasteboard(NSString *toCopy); 17 | 18 | @interface CController : NSObject { 19 | IBOutlet NSWindow *mainWindow; 20 | IBOutlet NSWindow *prefsWindow; 21 | 22 | IBOutlet NSWindow *colorInputSheet; 23 | IBOutlet NSTextField *colorInputField; 24 | 25 | IBOutlet NSColorWell *colorWell; 26 | IBOutlet NSPopUpButton *patternSelector; 27 | IBOutlet CPatternController *patternController; 28 | } 29 | 30 | // Interface methods 31 | - (void)composeInterface; 32 | - (IBAction)displayPreferences:(id)sender; 33 | - (void)populatePatternSelector; 34 | 35 | // Methods 36 | - (IBAction)grabColorForScreen:(id)sender; 37 | - (IBAction)copyColorToPasteboard:(id)sender; 38 | - (IBAction)inputNewColor:(id)sender; 39 | - (IBAction)saveNewColor:(id)sender; 40 | - (IBAction)cancelNewColor:(id)sender; 41 | - (void)didEndSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; 42 | 43 | // Color panel delegate methods 44 | - (void)changeColor:(id)sender; 45 | 46 | @end 47 | 48 | // Hack to enable magnifier access 49 | @interface _NSMagnifier : NSObject {} 50 | + (id)sharedMagnifier; 51 | - (void)trackMagnifierForPanel:(id)fp8; 52 | @end 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Colors, by Matt Patenaude 2 | ========================= 3 | 4 | **Important note:** Colors is no longer actively maintained, and does not work properly on OS X Yosemite and later (10.10+). However, former {13bold} partner-in-crime [Laurent Baumann](http://lbaumann.com) picked up where I left off with the slightly-more-French [Couleurs](http://couleursapp.com), which looks and works great on Yosemite! 5 | 6 | ## About 7 | 8 | 9 | 10 | Colors is a simple application for graphic designers, web designers, and anyone 11 | else who needs to be able to pull colors from what you can see on the screen. 12 | Colors takes Apple's basic color chooser (complete with "magnifying glass" to 13 | pull colors from other applications), and combines it with an easy way to copy 14 | common formats of color values (eg., #rrggbb, rgba(r, g, b, a), etc.) to the 15 | clipboard. In the newest version, you can even define your own patterns, and 16 | input colors using any valid CSS color declaration. Colors is a free download 17 | for anyone who would like to use it. Requires Mac OS X 10.5 (Leopard). 18 | 19 | 20 | ## Screenshot 21 | 22 | 23 | 24 | 25 | ## Changelog 26 | 27 | ### 1.10 28 | 29 | * Retina display support. 30 | * Can reopen the closed main window with click dock icon now. 31 | * Fix copy color pattern with iOS device. 32 | 33 | ## Downloads 34 | 35 | * [Colors-1.10.zip](http://tmitter.googlecode.com/files/Colors-1.10.zip) 36 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWSplitView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWSplitView.h 3 | // BWToolkit 4 | // 5 | // Created by Brandon Walkin (www.brandonwalkin.com) and Fraser Kuyvenhoven. 6 | // All code is provided under the New BSD license. 7 | // 8 | 9 | #import 10 | 11 | @interface BWSplitView : NSSplitView 12 | { 13 | NSColor *color; 14 | BOOL colorIsEnabled, checkboxIsEnabled, dividerCanCollapse, collapsibleSubviewCollapsed; 15 | id secondaryDelegate; 16 | NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; 17 | NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; 18 | NSArray *stateForLastPreferredCalculations; 19 | int collapsiblePopupSelection; 20 | float uncollapsedSize; 21 | 22 | // Collapse button 23 | NSButton *toggleCollapseButton; 24 | BOOL isAnimating; 25 | } 26 | 27 | @property (retain) NSMutableDictionary *minValues, *maxValues, *minUnits, *maxUnits; 28 | @property (retain) NSMutableDictionary *resizableSubviewPreferredProportion, *nonresizableSubviewPreferredSize; 29 | @property (retain) NSArray *stateForLastPreferredCalculations; 30 | @property (retain) NSButton *toggleCollapseButton; 31 | @property BOOL collapsibleSubviewCollapsed; 32 | @property int collapsiblePopupSelection; 33 | @property BOOL dividerCanCollapse; 34 | 35 | // The split view divider color 36 | @property (copy) NSColor *color; 37 | 38 | // Flag for whether a custom divider color is enabled. If not, the standard divider color is used. 39 | @property BOOL colorIsEnabled; 40 | 41 | // Call this method to collapse or expand a subview configured as collapsible in the IB inspector. 42 | - (IBAction)toggleCollapse:(id)sender; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/BWToolkitFramework.h: -------------------------------------------------------------------------------- 1 | // 2 | // BWToolkitFramework.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 | // This is a convenience header for importing the BWToolkit framework into your classes. 10 | 11 | #import "BWAnchoredButton.h" 12 | #import "BWAnchoredButtonBar.h" 13 | #import "BWAnchoredButtonCell.h" 14 | #import "BWAnchoredPopUpButton.h" 15 | #import "BWAnchoredPopUpButtonCell.h" 16 | #import "BWGradientBox.h" 17 | #import "BWHyperlinkButton.h" 18 | #import "BWHyperlinkButtonCell.h" 19 | #import "BWInsetTextField.h" 20 | #import "BWSelectableToolbar.h" 21 | #import "BWSheetController.h" 22 | #import "BWSplitView.h" 23 | #import "BWStyledTextField.h" 24 | #import "BWStyledTextFieldCell.h" 25 | #import "BWTexturedSlider.h" 26 | #import "BWTexturedSliderCell.h" 27 | #import "BWTokenAttachmentCell.h" 28 | #import "BWTokenField.h" 29 | #import "BWTokenFieldCell.h" 30 | #import "BWToolbarItem.h" 31 | #import "BWToolbarShowColorsItem.h" 32 | #import "BWToolbarShowFontsItem.h" 33 | #import "BWTransparentButton.h" 34 | #import "BWTransparentButtonCell.h" 35 | #import "BWTransparentCheckbox.h" 36 | #import "BWTransparentCheckboxCell.h" 37 | #import "BWTransparentPopUpButton.h" 38 | #import "BWTransparentPopUpButtonCell.h" 39 | #import "BWTransparentScroller.h" 40 | #import "BWTransparentScrollView.h" 41 | #import "BWTransparentSlider.h" 42 | #import "BWTransparentSliderCell.h" 43 | #import "BWTransparentTableView.h" 44 | #import "BWTransparentTableViewCell.h" 45 | #import "BWTransparentTextFieldCell.h" 46 | #import "BWUnanchoredButton.h" 47 | #import "BWUnanchoredButtonCell.h" 48 | -------------------------------------------------------------------------------- /Classes/NSColor+CAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSColor+CAdditions.h 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // Format mode constants 12 | #define CHexSingleton @"hexSingleton" 13 | #define CHexPair @"hexPair" 14 | #define CShortDecimalOver1 @"dec1" 15 | #define CFloatOver1 @"float1" 16 | #define CIntegerOver100 @"int100" 17 | #define CShortDecimalOver100 @"dec100" 18 | #define CFloatOver100 @"float100" 19 | #define CIntegerOver255 @"int255" 20 | #define CShortDecimalOver255 @"dec255" 21 | #define CFloatOver255 @"float255" 22 | #define CIntegerOver360 @"int360" 23 | #define CShortDecimalOver360 @"dec360" 24 | #define CFloatOver360 @"float360" 25 | 26 | // Rounding function 27 | #define MPRound(x) ((x)>=0?(NSInteger)((x)+0.5):(NSInteger)((x)-0.5)) 28 | 29 | // Hex functions 30 | NSString *CDecToHexPair(NSInteger decNumber); 31 | NSString *CDecToHexSingleton(NSInteger decNumber); 32 | 33 | // Formatting function 34 | NSString *CFormattedComponent(CGFloat component, NSString *theFormat); 35 | 36 | @interface NSColor (CAdditions) 37 | 38 | // Input methods 39 | + (NSColor *)colorWithCSSColor:(NSString *)theString; 40 | 41 | // Output methods 42 | - (NSString *)redComponentWithFormat:(NSString *)theString; 43 | - (NSString *)greenComponentWithFormat:(NSString *)theString; 44 | - (NSString *)blueComponentWithFormat:(NSString *)theString; 45 | - (NSString *)hueComponentWithFormat:(NSString *)theString; 46 | - (NSString *)saturationComponentWithFormat:(NSString *)theString; 47 | - (NSString *)lightnessComponentWithFormat:(NSString *)theString; 48 | - (NSString *)alphaComponentWithFormat:(NSString *)theString; 49 | 50 | - (NSString *)stringWithPattern:(NSDictionary *)thePatternDict; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Headers/NSTokenAttachmentCell.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 NSTokenAttachmentCell : NSTextAttachmentCell 10 | { 11 | id _representedObject; 12 | id _textColor; 13 | id _reserved; 14 | struct { 15 | unsigned int _selected:1; 16 | unsigned int _edgeStyle:2; 17 | unsigned int _reserved:29; 18 | } _tacFlags; 19 | } 20 | 21 | + (void)initialize; 22 | - (id)initTextCell:(id)fp8; 23 | - (id)init; 24 | - (void)dealloc; 25 | - (id)representedObject; 26 | - (void)setRepresentedObject:(id)fp8; 27 | - (int)interiorBackgroundStyle; 28 | - (BOOL)_hasMenu; 29 | - (id)tokenForegroundColor; 30 | - (id)tokenBackgroundColor; 31 | - (id)textColor; 32 | - (void)setTextColor:(id)fp8; 33 | - (id)pullDownImage; 34 | - (id)menu; 35 | - (NSSize)cellSizeForBounds:(NSRect)fp8; 36 | - (NSSize)cellSize; 37 | - (NSRect)drawingRectForBounds:(NSRect)fp8; 38 | - (NSRect)titleRectForBounds:(NSRect)fp8; 39 | - (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(NSPoint)fp28 characterIndex:(unsigned int)fp36; 40 | - (NSPoint)cellBaselineOffset; 41 | - (NSRect)pullDownRectForBounds:(NSRect)fp8; 42 | - (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; 43 | - (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; 44 | - (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; 45 | - (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; 46 | - (void)encodeWithCoder:(id)fp8; 47 | - (id)initWithCoder:(id)fp8; 48 | - (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; 49 | - (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; 50 | 51 | @end 52 | 53 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGGradientTheme.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGGradientTheme.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/15/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGTheme.h" 37 | 38 | @interface BGGradientTheme : BGTheme { 39 | 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/NSTokenAttachmentCell.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 NSTokenAttachmentCell : NSTextAttachmentCell 10 | { 11 | id _representedObject; 12 | id _textColor; 13 | id _reserved; 14 | struct { 15 | unsigned int _selected:1; 16 | unsigned int _edgeStyle:2; 17 | unsigned int _reserved:29; 18 | } _tacFlags; 19 | } 20 | 21 | + (void)initialize; 22 | - (id)initTextCell:(id)fp8; 23 | - (id)init; 24 | - (void)dealloc; 25 | - (id)representedObject; 26 | - (void)setRepresentedObject:(id)fp8; 27 | - (int)interiorBackgroundStyle; 28 | - (BOOL)_hasMenu; 29 | - (id)tokenForegroundColor; 30 | - (id)tokenBackgroundColor; 31 | - (id)textColor; 32 | - (void)setTextColor:(id)fp8; 33 | - (id)pullDownImage; 34 | - (id)menu; 35 | - (struct _NSSize)cellSizeForBounds:(NSRect)fp8; 36 | - (struct _NSSize)cellSize; 37 | - (NSRect)drawingRectForBounds:(NSRect)fp8; 38 | - (NSRect)titleRectForBounds:(NSRect)fp8; 39 | - (NSRect)cellFrameForTextContainer:(id)fp8 proposedLineFragment:(NSRect)fp12 glyphPosition:(struct _NSPoint)fp28 characterIndex:(unsigned int)fp36; 40 | - (struct _NSPoint)cellBaselineOffset; 41 | - (NSRect)pullDownRectForBounds:(NSRect)fp8; 42 | - (void)drawTokenWithFrame:(NSRect)fp8 inView:(id)fp24; 43 | - (void)drawInteriorWithFrame:(NSRect)fp8 inView:(id)fp24; 44 | - (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24; 45 | - (void)drawWithFrame:(NSRect)fp8 inView:(id)fp24 characterIndex:(unsigned int)fp28 layoutManager:(id)fp32; 46 | - (void)encodeWithCoder:(id)fp8; 47 | - (id)initWithCoder:(id)fp8; 48 | - (BOOL)wantsToTrackMouseForEvent:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32; 49 | - (BOOL)trackMouse:(id)fp8 inRect:(NSRect)fp12 ofView:(id)fp28 atCharacterIndex:(unsigned int)fp32 untilMouseUp:(BOOL)fp36; 50 | 51 | @end 52 | 53 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTabViewItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTabViewItem.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/10/09. 6 | // Copyright 2009 none. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, 9 | // are permitted provided that the following conditions are met: 10 | // 11 | // Redistributions of source code must retain the above copyright notice, this 12 | // list of conditions and the following disclaimer. 13 | // 14 | // Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation and/or 16 | // other materials provided with the distribution. 17 | // 18 | // Neither the name of the BinaryMethod.com nor the names of its contributors 19 | // may be used to endorse or promote products derived from this software without 20 | // specific prior written permission. 21 | // 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 23 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 28 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 | // POSSIBILITY OF SUCH DAMAGE. 32 | 33 | #import 34 | #import "BGThemeManager.h" 35 | 36 | @interface BGHUDTabViewItem : NSTabViewItem { 37 | 38 | NSString *themeKey; 39 | } 40 | 41 | @property (retain) NSString *themeKey; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDGeometry.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDGeometry.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 9/25/08. 6 | // Copyright 2008 none. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, 9 | // are permitted provided that the following conditions are met: 10 | // 11 | // Redistributions of source code must retain the above copyright notice, this 12 | // list of conditions and the following disclaimer. 13 | // 14 | // Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation and/or 16 | // other materials provided with the distribution. 17 | // 18 | // Neither the name of the BinaryMethod.com nor the names of its contributors 19 | // may be used to endorse or promote products derived from this software without 20 | // specific prior written permission. 21 | // 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 23 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 28 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 | // POSSIBILITY OF SUCH DAMAGE. 32 | 33 | #import 34 | 35 | 36 | NS_INLINE CGFloat BGCenterX(NSRect aRect) { 37 | return (aRect.size.width / 2); 38 | } 39 | 40 | NS_INLINE CGFloat BGCenterY(NSRect aRect) { 41 | return (aRect.size.height / 2); 42 | } 43 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTabView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTabView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/10/09. 6 | // Copyright 2009 none. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, 9 | // are permitted provided that the following conditions are met: 10 | // 11 | // Redistributions of source code must retain the above copyright notice, this 12 | // list of conditions and the following disclaimer. 13 | // 14 | // Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation and/or 16 | // other materials provided with the distribution. 17 | // 18 | // Neither the name of the BinaryMethod.com nor the names of its contributors 19 | // may be used to endorse or promote products derived from this software without 20 | // specific prior written permission. 21 | // 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 23 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 28 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 | // POSSIBILITY OF SUCH DAMAGE. 32 | 33 | #import 34 | #import "BGThemeManager.h" 35 | #import "BGHUDTabViewItem.h" 36 | 37 | @interface BGHUDTabView : NSTabView { 38 | 39 | NSString *themeKey; 40 | } 41 | 42 | @property (retain) NSString *themeKey; 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDLabel.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 8/23/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDLabel : NSTextField { 39 | 40 | NSString *themeKey; 41 | } 42 | 43 | @property (retain) NSString *themeKey; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Classes/CPatternController.h: -------------------------------------------------------------------------------- 1 | // 2 | // CPatternController.h 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | // Forward declarations 13 | @class CController; 14 | 15 | // Tag/edit conversion functions 16 | NSInteger CTagForPatternFormat(NSString *theFormat); 17 | NSString *CPatternFormatForTag(NSInteger theTag); 18 | 19 | @interface CPatternController : NSObject { 20 | IBOutlet CController *appController; 21 | 22 | IBOutlet NSWindow *prefsWindow; 23 | IBOutlet NSWindow *patternEditSheet; 24 | 25 | IBOutlet NSTableView *patternList; 26 | NSMutableArray *patterns; 27 | 28 | // edit sheet outlets 29 | IBOutlet NSTextField *descriptionField; 30 | IBOutlet NSTextField *patternField; 31 | IBOutlet NSPopUpButton *redComponentField; 32 | IBOutlet NSPopUpButton *blueComponentField; 33 | IBOutlet NSPopUpButton *greenComponentField; 34 | IBOutlet NSPopUpButton *hueComponentField; 35 | IBOutlet NSPopUpButton *saturationComponentField; 36 | IBOutlet NSPopUpButton *lightnessComponentField; 37 | IBOutlet NSPopUpButton *alphaComponentField; 38 | 39 | NSInteger editingRow; 40 | } 41 | 42 | // Properties 43 | - (NSArray *)patterns; 44 | 45 | // Editing methods 46 | - (IBAction)addPattern:(id)sender; 47 | - (IBAction)removePattern:(id)sender; 48 | - (IBAction)editPattern:(id)sender; 49 | 50 | - (IBAction)saveSettings:(id)sender; 51 | - (IBAction)cancelEdit:(id)sender; 52 | - (void)savePatternList; 53 | - (void)didEndSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo; 54 | 55 | // Table data source methods 56 | - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView; 57 | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex; 58 | 59 | // Table view delegate methods 60 | - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex; 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDScrollView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDScrollView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/31/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGHUDScroller.h" 37 | #import "BGThemeManager.h" 38 | 39 | @interface BGHUDScrollView : NSScrollView { 40 | 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTableViewHeaderCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTableViewHeaderCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/17/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDTableViewHeaderCell : NSTableHeaderCell { 39 | 40 | NSString *themeKey; 41 | } 42 | 43 | @property (retain) NSString *themeKey; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTextFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTextFieldCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/2/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDTextFieldCell : NSTextFieldCell { 39 | 40 | BOOL fillsBackground; 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDSearchFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDSearchFieldCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 7/21/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDSearchFieldCell : NSSearchFieldCell { 39 | 40 | BOOL fillsBackground; 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDProgressIndicator.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDProgressIndicator.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/6/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDProgressIndicator : NSProgressIndicator { 39 | 40 | NSBezierPath *progressPath; 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDSecureTextFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDSecureTextFieldCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/12/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDSecureTextFieldCell : NSSecureTextFieldCell { 39 | 40 | BOOL fillsBackground; 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDPopUpButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDPopUpButtonCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/31/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDPopUpButtonCell : NSPopUpButtonCell { 39 | 40 | NSString *themeKey; 41 | } 42 | 43 | @property (retain) NSString *themeKey; 44 | 45 | - (void)drawArrowsInRect:(NSRect) frame; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTableView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTableView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/17/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | #import "BGHUDTableViewHeaderCell.h" 38 | #import "BGHUDTableCornerView.h" 39 | 40 | @interface BGHUDTableView : NSTableView { 41 | 42 | NSString *themeKey; 43 | } 44 | 45 | @property (retain) NSString *themeKey; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDOutlineView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDOutlineView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/20/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | #import "BGHUDTableViewHeaderCell.h" 38 | #import "BGHUDTableCornerView.h" 39 | 40 | @interface BGHUDOutlineView : NSOutlineView { 41 | 42 | NSString *themeKey; 43 | } 44 | 45 | @property (retain) NSString *themeKey; 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDColorWell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDColorWell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 8/9/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDColorWell : NSColorWell { 39 | 40 | NSString *themeKey; 41 | BOOL useTransparentWell; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | - (BOOL)useTransparentWell; 47 | - (void)setUseTransparentWell:(BOOL) flag; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTokenFieldCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTokenFieldCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/10/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGHUDTokenAttachmentCell.h" 37 | #import "NSTokenAttachmentCell.h" 38 | #import "BGThemeManager.h" 39 | 40 | @interface BGHUDTokenFieldCell : NSTokenFieldCell { 41 | 42 | BOOL fillsBackground; 43 | NSString *themeKey; 44 | } 45 | 46 | @property (retain) NSString *themeKey; 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDComboBoxCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // NGHUDComboBoxCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by Alan Rogers on 10/11/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | 38 | @interface BGHUDComboBoxCell : NSComboBoxCell { 39 | 40 | BOOL fillsBackground; 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | - (void)drawArrowsInRect:(NSRect) frame; 47 | -(void)drawButtonInRect:(NSRect) cellFrame; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDSegmentedCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDSegmentedCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 7/1/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | #import "BGHUDGeometry.h" 38 | 39 | @interface BGHUDSegmentedCell : NSSegmentedCell { 40 | 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | -(void)drawInteriorForSegment:(int)segment withFrame:(NSRect)rect; 47 | -(BOOL)hasText; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGThemeManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGThemeManager.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/15/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGTheme.h" 37 | #import "BGGradientTheme.h" 38 | 39 | @interface BGThemeManager : NSObject { 40 | 41 | NSMutableDictionary *themes; 42 | } 43 | 44 | + (BGThemeManager *)keyedManager; 45 | -(void)initDefaultThemes; 46 | - (BGTheme *)themeForKey:(NSString *)key; 47 | - (void)setTheme:(BGTheme *)theme forKey:(NSString *)key; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDTokenAttachmentCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDTokenAttachmentCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/11/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "NSTokenAttachmentCell.h" 37 | 38 | @interface BGHUDTokenAttachmentCell : NSTokenAttachmentCell { 39 | 40 | NSColor *tokenFillNormal; 41 | NSColor *tokenFillHighlight; 42 | NSColor *tokenBorder; 43 | } 44 | 45 | @property (copy) NSColor *tokenFillNormal; 46 | @property (copy) NSColor *tokenFillHighlight; 47 | @property (copy) NSColor *tokenBorder; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Frameworks/BWToolkitFramework.framework/Versions/A/Resources/License.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 2 | {\fonttbl\f0\fnil\fcharset0 Verdana;} 3 | {\colortbl;\red255\green255\blue255;\red73\green73\blue73;} 4 | {\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc2\leveljcn2\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid0\'02\'05.;}{\levelnumbers\'01;}}{\listname ;}\listid1}} 5 | {\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}} 6 | \deftab720 7 | \pard\pardeftab720\sl400\sa280\ql\qnatural 8 | 9 | \f0\fs24 \cf2 Copyright (c) 2009, Brandon Walkin\uc0\u8232 All rights reserved.\ 10 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\ 11 | \pard\tx220\tx720\pardeftab720\li720\fi-720\sl400\sa20\ql\qnatural 12 | \ls1\ilvl0\cf2 {\listtext \'95 }Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\ 13 | {\listtext \'95 }Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\ 14 | {\listtext \'95 }Neither the name of the Brandon Walkin nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\ 15 | \pard\pardeftab720\sl400\sa280\ql\qnatural 16 | \cf2 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.} -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDSliderCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDSliderCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/30/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | #import "BGHUDGeometry.h" 38 | 39 | @interface BGHUDSliderCell : NSSliderCell { 40 | 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | -(void)drawHorizontalBarInFrame:(NSRect)frame; 47 | -(void)drawVerticalBarInFrame:(NSRect)frame; 48 | -(void)drawHorizontalKnobInFrame:(NSRect)frame; 49 | -(void)drawVerticalKnobInFrame:(NSRect)frame; 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDButtonCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDButtonCell.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/25/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | #import "BGThemeManager.h" 37 | #import "BGHUDGeometry.h" 38 | 39 | @interface BGHUDButtonCell : NSButtonCell { 40 | 41 | NSString *themeKey; 42 | } 43 | 44 | @property (retain) NSString *themeKey; 45 | 46 | -(void)drawCheckInFrame:(NSRect)frame isRadio:(BOOL)radio; 47 | -(void)drawTexturedRoundedButtonInFrame:(NSRect)frame; 48 | -(void)drawRoundRectButtonInFrame:(NSRect)frame; 49 | -(void)drawSmallSquareButtonInFrame:(NSRect)frame; 50 | -(void)drawRoundedButtonInFrame:(NSRect)frame; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDScroller.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHudScroller.h 3 | // HUDScroller 4 | // 5 | // Created by BinaryGod on 5/22/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | 36 | // Special thanks to Matt Gemmell (http://mattgemmell.com/) for helping me solve the 37 | // transparent drawing issues. Your awesome man!!! 38 | 39 | #import 40 | #import "BGThemeManager.h" 41 | #import "BGHUDGeometry.h" 42 | 43 | @interface BGHUDScroller : NSScroller { 44 | 45 | NSString *arrowPosition; 46 | NSString *themeKey; 47 | } 48 | 49 | @property (copy) NSString *themeKey; 50 | 51 | - (void)drawDecrementArrow:(BOOL)highlighted; 52 | - (void)drawIncrementArrow:(BOOL)highlighted; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDAppKit.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDAppKit.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 5/25/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | 36 | #import "BGHUDScroller.h" 37 | #import "BGHUDButtonCell.h" 38 | #import "BGHUDSliderCell.h" 39 | #import "BGHUDScrollView.h" 40 | #import "BGHUDPopUpButtonCell.h" 41 | #import "BGHUDTextFieldCell.h" 42 | #import "BGHUDProgressIndicator.h" 43 | #import "BGHUDTokenFieldCell.h" 44 | #import "BGHUDSecureTextFieldCell.h" 45 | #import "BGHUDOutlineView.h" 46 | #import "BGHUDTableView.h" 47 | #import "BGThemeManager.h" 48 | #import "BGHUDTableCornerView.h" 49 | #import "BGHUDSearchFieldCell.h" 50 | #import "BGHUDSegmentedCell.h" 51 | #import "BGHUDColorWell.h" 52 | #import "BGHUDLabel.h" 53 | #import "BGHUDBox.h" 54 | #import "BGHUDView.h" 55 | #import "BGHUDComboBoxCell.h" 56 | #import "BGHUDStepperCell.h" -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDBox.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDBox.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 2/16/09. 6 | // Copyright 2009 none. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, 9 | // are permitted provided that the following conditions are met: 10 | // 11 | // Redistributions of source code must retain the above copyright notice, this 12 | // list of conditions and the following disclaimer. 13 | // 14 | // Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation and/or 16 | // other materials provided with the distribution. 17 | // 18 | // Neither the name of the BinaryMethod.com nor the names of its contributors 19 | // may be used to endorse or promote products derived from this software without 20 | // specific prior written permission. 21 | // 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 23 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 28 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 | // POSSIBILITY OF SUCH DAMAGE. 32 | 33 | #import 34 | #import "BGThemeManager.h" 35 | 36 | @interface BGHUDBox : NSBox { 37 | 38 | BOOL flipGradient; 39 | BOOL drawTopBorder; 40 | BOOL drawBottomBorder; 41 | BOOL drawLeftBorder; 42 | BOOL drawRightBorder; 43 | NSColor *borderColor; 44 | BOOL drawTopShadow; 45 | BOOL drawBottomShadow; 46 | BOOL drawLeftShadow; 47 | BOOL drawRightShadow; 48 | NSColor *shadowColor; 49 | NSGradient *customGradient; 50 | 51 | NSColor *color1; 52 | NSColor *color2; 53 | 54 | NSString *themeKey; 55 | BOOL useTheme; 56 | } 57 | 58 | @property BOOL flipGradient; 59 | @property BOOL drawTopBorder; 60 | @property BOOL drawBottomBorder; 61 | @property BOOL drawLeftBorder; 62 | @property BOOL drawRightBorder; 63 | @property (retain) NSColor *borderColor; 64 | @property BOOL drawTopShadow; 65 | @property BOOL drawBottomShadow; 66 | @property BOOL drawLeftShadow; 67 | @property BOOL drawRightShadow; 68 | @property (retain) NSColor *shadowColor; 69 | @property (retain) NSGradient *customGradient; 70 | @property (retain) NSColor *color1; 71 | @property (retain) NSColor *color2; 72 | 73 | @property (retain) NSString *themeKey; 74 | @property BOOL useTheme; 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGHUDView.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGHUDView.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 2/15/09. 6 | // Copyright 2009 none. All rights reserved. 7 | // 8 | // Redistribution and use in source and binary forms, with or without modification, 9 | // are permitted provided that the following conditions are met: 10 | // 11 | // Redistributions of source code must retain the above copyright notice, this 12 | // list of conditions and the following disclaimer. 13 | // 14 | // Redistributions in binary form must reproduce the above copyright notice, 15 | // this list of conditions and the following disclaimer in the documentation and/or 16 | // other materials provided with the distribution. 17 | // 18 | // Neither the name of the BinaryMethod.com nor the names of its contributors 19 | // may be used to endorse or promote products derived from this software without 20 | // specific prior written permission. 21 | // 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 23 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 26 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 28 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 | // POSSIBILITY OF SUCH DAMAGE. 32 | 33 | #import 34 | #import "BGThemeManager.h" 35 | 36 | @interface BGHUDView : NSView { 37 | 38 | BOOL flipGradient; 39 | BOOL drawTopBorder; 40 | BOOL drawBottomBorder; 41 | BOOL drawLeftBorder; 42 | BOOL drawRightBorder; 43 | NSColor *borderColor; 44 | BOOL drawTopShadow; 45 | BOOL drawBottomShadow; 46 | BOOL drawLeftShadow; 47 | BOOL drawRightShadow; 48 | NSColor *shadowColor; 49 | NSGradient *customGradient; 50 | 51 | NSColor *color1; 52 | NSColor *color2; 53 | 54 | NSString *themeKey; 55 | BOOL useTheme; 56 | } 57 | 58 | @property BOOL flipGradient; 59 | @property BOOL drawTopBorder; 60 | @property BOOL drawBottomBorder; 61 | @property BOOL drawLeftBorder; 62 | @property BOOL drawRightBorder; 63 | @property (retain) NSColor *borderColor; 64 | @property BOOL drawTopShadow; 65 | @property BOOL drawBottomShadow; 66 | @property BOOL drawLeftShadow; 67 | @property BOOL drawRightShadow; 68 | @property (retain) NSColor *shadowColor; 69 | @property (retain) NSGradient *customGradient; 70 | @property (retain) NSColor *color1; 71 | @property (retain) NSColor *color2; 72 | 73 | @property (retain) NSString *themeKey; 74 | @property BOOL useTheme; 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /Colors.xcodeproj/xcuserdata/jason.xcuserdatad/xcschemes/Colors.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 69 | 70 | 76 | 77 | 78 | 79 | 81 | 82 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /Classes/CController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CController.m 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import "CController.h" 10 | #import "NSColor+CAdditions.h" 11 | #import "CPatternController.h" 12 | 13 | 14 | #pragma mark Pasteboard functions 15 | void CCopyStringToPasteboard(NSString *toCopy) 16 | { 17 | NSPasteboard *pb = [NSPasteboard generalPasteboard]; 18 | [pb declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil]; 19 | [pb setString:toCopy forType:NSStringPboardType]; 20 | } 21 | 22 | @implementation CController 23 | 24 | #pragma mark Initializers 25 | - (void)awakeFromNib 26 | { 27 | [self composeInterface]; 28 | 29 | mainWindow.delegate = self; 30 | } 31 | 32 | - (void)applicationWillFinishLaunching:(NSNotification *)aNotification 33 | { 34 | [NSColor setIgnoresAlpha:NO]; 35 | [NSColorPanel sharedColorPanel].delegate = self; 36 | } 37 | 38 | #pragma mark Interface methods 39 | - (void)composeInterface 40 | { 41 | [mainWindow setContentBorderThickness:21.0 forEdge:NSMinYEdge]; 42 | [self populatePatternSelector]; 43 | } 44 | - (IBAction)displayPreferences:(id)sender 45 | { 46 | [prefsWindow makeKeyAndOrderFront:sender]; 47 | } 48 | - (void)populatePatternSelector 49 | { 50 | NSString *oldTitle = [[[patternSelector selectedItem] title] copy]; 51 | 52 | NSArray *itemArray = [[patternSelector itemArray] copy]; 53 | for (NSMenuItem *item in itemArray) 54 | [[patternSelector menu] removeItem:item]; 55 | [itemArray release]; 56 | 57 | NSArray *patterns = [patternController patterns]; 58 | for (NSDictionary *pattern in patterns) 59 | [patternSelector addItemWithTitle:[pattern objectForKey:@"description"]]; 60 | 61 | if (oldTitle) 62 | { 63 | if ([patternSelector itemWithTitle:oldTitle] != nil) 64 | [patternSelector selectItemWithTitle:oldTitle]; 65 | [oldTitle release]; 66 | } 67 | } 68 | 69 | #pragma mark Methods 70 | - (IBAction)grabColorForScreen:(id)sender 71 | { 72 | _NSMagnifier *mag = [_NSMagnifier sharedMagnifier]; 73 | [mag trackMagnifierForPanel:[NSColorPanel sharedColorPanel]]; 74 | } 75 | - (IBAction)copyColorToPasteboard:(id)sender 76 | { 77 | NSInteger selection = [patternSelector indexOfSelectedItem]; 78 | if (selection > -1) 79 | { 80 | NSArray *patterns = [patternController patterns]; 81 | NSDictionary *thePattern = [patterns objectAtIndex:selection]; 82 | 83 | NSString *output = [[colorWell color] stringWithPattern:thePattern]; 84 | CCopyStringToPasteboard(output); 85 | } 86 | } 87 | - (IBAction)inputNewColor:(id)sender 88 | { 89 | [colorInputField setStringValue:@""]; 90 | [NSApp beginSheet:colorInputSheet modalForWindow:mainWindow modalDelegate:self didEndSelector:@selector(didEndSheet:returnCode:contextInfo:) contextInfo:nil]; 91 | [colorInputSheet makeFirstResponder:colorInputField]; 92 | } 93 | - (IBAction)saveNewColor:(id)sender 94 | { 95 | [colorWell setColor:[NSColor colorWithCSSColor:[colorInputField stringValue]]]; 96 | [NSApp endSheet:colorInputSheet]; 97 | } 98 | - (IBAction)cancelNewColor:(id)sender 99 | { 100 | [NSApp endSheet:colorInputSheet]; 101 | } 102 | - (void)didEndSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo 103 | { 104 | [sheet orderOut:self]; 105 | } 106 | 107 | #pragma mark Color panel delegate methods 108 | - (void)changeColor:(id)sender 109 | { 110 | [NSApp activateIgnoringOtherApps:YES]; 111 | [colorWell setColor:[sender color]]; 112 | } 113 | 114 | - (BOOL)windowShouldClose:(id)sender { 115 | if(sender == mainWindow) { 116 | [[NSApplication sharedApplication] hide:nil]; 117 | return NO; 118 | } 119 | return YES; 120 | } 121 | 122 | 123 | 124 | @end 125 | -------------------------------------------------------------------------------- /Resources/DefaultPatterns.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | description 7 | #rrggbb 8 | pattern 9 | #%r%g%b 10 | redFormat 11 | hexPair 12 | greenFormat 13 | hexPair 14 | blueFormat 15 | hexPair 16 | hueFormat 17 | int360 18 | saturationFormat 19 | dec100 20 | lightnessFormat 21 | dec100 22 | alphaFormat 23 | dec1 24 | 25 | 26 | description 27 | rrggbb 28 | pattern 29 | %r%g%b 30 | redFormat 31 | hexPair 32 | greenFormat 33 | hexPair 34 | blueFormat 35 | hexPair 36 | hueFormat 37 | int360 38 | saturationFormat 39 | dec100 40 | lightnessFormat 41 | dec100 42 | alphaFormat 43 | dec1 44 | 45 | 46 | description 47 | NSColor (Calibrated) 48 | pattern 49 | [NSColor colorWithCalibratedRed:%r green:%g blue:%b alpha:%a] 50 | redFormat 51 | dec1 52 | greenFormat 53 | dec1 54 | blueFormat 55 | dec1 56 | hueFormat 57 | int360 58 | saturationFormat 59 | dec100 60 | lightnessFormat 61 | dec100 62 | alphaFormat 63 | dec1 64 | 65 | 66 | description 67 | UIColor (Device) 68 | pattern 69 | [UIColor colorWithRed:%r green:%g blue:%b alpha:%a] 70 | redFormat 71 | dec1 72 | greenFormat 73 | dec1 74 | blueFormat 75 | dec1 76 | hueFormat 77 | int360 78 | saturationFormat 79 | dec100 80 | lightnessFormat 81 | dec100 82 | alphaFormat 83 | dec1 84 | 85 | 86 | description 87 | #rgb 88 | pattern 89 | #%r%g%b 90 | redFormat 91 | hexSingleton 92 | greenFormat 93 | hexSingleton 94 | blueFormat 95 | hexSingleton 96 | hueFormat 97 | int360 98 | saturationFormat 99 | dec100 100 | lightnessFormat 101 | dec100 102 | alphaFormat 103 | dec1 104 | 105 | 106 | description 107 | rgb(r, g, b) 108 | pattern 109 | rgb(%r, %g, %b) 110 | redFormat 111 | int255 112 | greenFormat 113 | int255 114 | blueFormat 115 | int255 116 | hueFormat 117 | int360 118 | saturationFormat 119 | dec100 120 | lightnessFormat 121 | dec100 122 | alphaFormat 123 | dec1 124 | 125 | 126 | description 127 | rgba(r, g, b, a) 128 | pattern 129 | rgba(%r, %g, %b, %a) 130 | redFormat 131 | int255 132 | greenFormat 133 | int255 134 | blueFormat 135 | int255 136 | hueFormat 137 | int360 138 | saturationFormat 139 | dec100 140 | lightnessFormat 141 | dec100 142 | alphaFormat 143 | dec1 144 | 145 | 146 | description 147 | hsl(h, s, l) 148 | pattern 149 | hsl(%h, %s%%, %l%%) 150 | redFormat 151 | hexPair 152 | greenFormat 153 | hexPair 154 | blueFormat 155 | hexPair 156 | hueFormat 157 | int360 158 | saturationFormat 159 | dec100 160 | lightnessFormat 161 | dec100 162 | alphaFormat 163 | dec1 164 | 165 | 166 | description 167 | hsla(h, s, l, a) 168 | pattern 169 | hsla(%h, %s%%, %l%%, %a) 170 | redFormat 171 | hexPair 172 | greenFormat 173 | hexPair 174 | blueFormat 175 | hexPair 176 | hueFormat 177 | int360 178 | saturationFormat 179 | dec100 180 | lightnessFormat 181 | dec100 182 | alphaFormat 183 | dec1 184 | 185 | 186 | 187 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Headers/BGTheme.h: -------------------------------------------------------------------------------- 1 | // 2 | // BGThemeManager.h 3 | // BGHUDAppKit 4 | // 5 | // Created by BinaryGod on 6/15/08. 6 | // 7 | // Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com) 8 | // All rights reserved. 9 | // 10 | // Redistribution and use in source and binary forms, with or without modification, 11 | // are permitted provided that the following conditions are met: 12 | // 13 | // Redistributions of source code must retain the above copyright notice, this 14 | // list of conditions and the following disclaimer. 15 | // 16 | // Redistributions in binary form must reproduce the above copyright notice, 17 | // this list of conditions and the following disclaimer in the documentation and/or 18 | // other materials provided with the distribution. 19 | // 20 | // Neither the name of the BinaryMethod.com nor the names of its contributors 21 | // may be used to endorse or promote products derived from this software without 22 | // specific prior written permission. 23 | // 24 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND 25 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 26 | // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 27 | // IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 28 | // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 29 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 30 | // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 | // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 32 | // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 | // POSSIBILITY OF SUCH DAMAGE. 34 | 35 | #import 36 | 37 | 38 | @interface BGTheme : NSObject { 39 | 40 | BOOL useAlpha; 41 | } 42 | 43 | //Scroller Theme 44 | -(NSColor *)scrollerStroke; //Color for Arrows/Knob Border 45 | -(NSGradient *)scrollerKnobGradient; //Gradient used to draw knob 46 | -(NSGradient *)scrollerTrackGradient; //Gradient used to draw knob track 47 | -(NSGradient *)scrollerArrowNormalGradient; //Gradient used on normal Arrow button 48 | -(NSGradient *)scrollerArrowPushedGradient; //Gradient used on pushed Arrow button 49 | -(float)scrollerAlphaValue; 50 | 51 | //Slider Theme 52 | -(NSColor *)sliderTrackColor; //Color used to draw slider track 53 | -(NSColor *)disabledSliderTrackColor; //Color used to draw disabled slider track 54 | -(NSGradient *)knobColor; //Gradient used to draw the knob 55 | -(NSGradient *)highlightKnobColor; //Gradient used to draw highlighted knob 56 | -(NSGradient *)disabledKnobColor; //Gradient used to draw disabled knob 57 | 58 | //Text Based Theme 59 | -(NSColor *)textFillColor; //Color of background if drawbackground set to ON 60 | -(NSColor *)selectionHighlightActiveColor; //Background color of higlighted text (active app) 61 | -(NSColor *)selectionHighlightInActiveColor; //Background color of higlighted text (inactive app) 62 | -(NSColor *)selectionTextActiveColor; //Selection text color (active app) 63 | -(NSColor *)selectionTextInActiveColor; //Selection text color (inactive app) 64 | -(NSColor *)placeholderTextColor; //Placeholder text color 65 | 66 | //Progress Theme 67 | -(NSGradient *)progressTrackGradient; //Gradient used to draw progress bar track 68 | 69 | //Token Theme 70 | -(NSColor *)tokenFillNormal; //Color used to fill normal token background 71 | -(NSColor *)tokenFillHighlight; //Color used to fill highlighted token background 72 | -(NSColor *)tokenBorder; //Color used to draw token border 73 | -(NSColor *)tokenTextColor; //Color used to draw token text 74 | 75 | //Table Theme 76 | -(NSColor *)cellHighlightColor; //Color used to highlight selected row 77 | -(NSArray *)cellAlternatingRowColors; //NSArray with 2 Colors used to draw alternating rows 78 | -(NSColor *)cellSelectedTextColor; //Color used to draw text when row selected 79 | -(NSColor *)cellEditingFillColor; //Color used to draw background of editing cell 80 | -(NSColor *)tableBackgroundColor; //Color used to fill table background 81 | -(NSColor *)tableHeaderCellBorderColor; //Color used to draw border in column headers 82 | -(NSGradient *)tableHeaderCellNormalFill; //Gradient used to draw normal column header 83 | -(NSGradient *)tableHeaderCellPushedFill; //Gradient used to draw pushed column header 84 | -(NSGradient *)tableHeaderCellSelectedFill; //Gradient used to draw selected column header 85 | 86 | //General Theme 87 | -(NSGradient *)normalGradient; //Gradient used to draw normal background 88 | -(NSGradient *)disabledNormalGradient; //Gradient used for disabled background 89 | -(NSGradient *)pushedGradient; //Gradient used to draw pushed background 90 | -(NSGradient *)highlightGradient; //Gradient used to draw highlight background 91 | -(NSGradient *)normalComplexGradient; //Gradient used to draw normal 4 tone gradient 92 | -(NSGradient *)disabledNormalComplexGradient; //Gradient used to draw disabled 4 tone gradient 93 | -(NSGradient *)pushedComplexGradient; //Gradient used to draw pushed 4 tone gradient 94 | -(NSGradient *)highlightComplexGradient; //Gradient used to draw highlight 4 tone gradient 95 | -(NSColor *)normalSolidFill; //Solid color used to draw normal background 96 | -(NSColor *)disabledNormalSolidFill; //Solid color used to draw disabled background 97 | -(NSColor *)pushedSolidFill; //Solid color used to draw pushed background 98 | -(NSColor *)highlightSolidFill; //Solid color used to draw highlight background 99 | -(NSColor *)strokeColor; //Color used to draw border 100 | -(NSColor *)disabledStrokeColor; //Color used for disabled border 101 | -(NSColor *)darkStrokeColor; //Color used to draw dark shadow border 102 | -(NSColor *)textColor; //Color used to draw text 103 | -(NSColor *)disabledTextColor; //Color used to draw disabled text 104 | -(NSShadow *)dropShadow; //Drop shadow used on all controls 105 | -(float)alphaValue; //Alpha value that is an optional paremeter, used only 106 | //if you want certain colors to be draw with the same 107 | //alpha value. 108 | -(float)disabledAlphaValue; //Same as above but the disabled varient 109 | -(NSShadow *)focusRing; //Shadow used for the focus rings 110 | 111 | @end 112 | -------------------------------------------------------------------------------- /Classes/CPatternController.m: -------------------------------------------------------------------------------- 1 | // 2 | // CPatternController.m 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import "CPatternController.h" 10 | #import "CController.h" 11 | #import "NSColor+CAdditions.h" 12 | 13 | 14 | // Tag/edit conversion functions 15 | NSInteger CTagForPatternFormat(NSString *theFormat) 16 | { 17 | if ([theFormat isEqualToString:CHexPair]) 18 | return 0; 19 | if ([theFormat isEqualToString:CHexSingleton]) 20 | return 1; 21 | if ([theFormat isEqualToString:CShortDecimalOver1]) 22 | return 2; 23 | if ([theFormat isEqualToString:CFloatOver1]) 24 | return 3; 25 | if ([theFormat isEqualToString:CIntegerOver100]) 26 | return 4; 27 | if ([theFormat isEqualToString:CShortDecimalOver100]) 28 | return 5; 29 | if ([theFormat isEqualToString:CFloatOver100]) 30 | return 6; 31 | if ([theFormat isEqualToString:CIntegerOver255]) 32 | return 7; 33 | if ([theFormat isEqualToString:CShortDecimalOver255]) 34 | return 8; 35 | if ([theFormat isEqualToString:CFloatOver255]) 36 | return 9; 37 | if ([theFormat isEqualToString:CIntegerOver360]) 38 | return 10; 39 | if ([theFormat isEqualToString:CShortDecimalOver360]) 40 | return 11; 41 | if ([theFormat isEqualToString:CFloatOver360]) 42 | return 12; 43 | return 3; 44 | } 45 | NSString *CPatternFormatForTag(NSInteger theTag) 46 | { 47 | switch (theTag) { 48 | case 0: 49 | return CHexPair; 50 | break; 51 | case 1: 52 | return CHexSingleton; 53 | break; 54 | case 2: 55 | return CShortDecimalOver1; 56 | break; 57 | case 4: 58 | return CIntegerOver100; 59 | break; 60 | case 5: 61 | return CShortDecimalOver100; 62 | break; 63 | case 6: 64 | return CFloatOver100; 65 | break; 66 | case 7: 67 | return CIntegerOver255; 68 | break; 69 | case 8: 70 | return CShortDecimalOver255; 71 | break; 72 | case 9: 73 | return CFloatOver255; 74 | break; 75 | case 10: 76 | return CIntegerOver360; 77 | break; 78 | case 11: 79 | return CShortDecimalOver360; 80 | break; 81 | case 12: 82 | return CFloatOver360; 83 | break; 84 | case 3: 85 | default: 86 | return CFloatOver1; 87 | break; 88 | } 89 | } 90 | 91 | @implementation CPatternController 92 | 93 | #pragma mark Initializers 94 | + (void)initialize 95 | { 96 | [[NSUserDefaults standardUserDefaults] registerDefaults:[NSDictionary dictionaryWithObject:[NSArray array] forKey:@"patterns"]]; 97 | } 98 | - (id)init 99 | { 100 | if (self = [super init]) 101 | { 102 | patterns = [[NSMutableArray alloc] init]; 103 | editingRow = -1; 104 | 105 | // compile the list of patterns 106 | NSString *defaultPatterns = [[NSBundle mainBundle] pathForResource:@"DefaultPatterns" ofType:@"plist"]; 107 | 108 | if (defaultPatterns) 109 | { 110 | NSArray *defPats = [[NSArray alloc] initWithContentsOfFile:defaultPatterns]; 111 | for (NSDictionary *pat in defPats) 112 | { 113 | NSMutableDictionary *thePattern = [pat mutableCopy]; 114 | [thePattern setObject:[NSNumber numberWithBool:NO] forKey:@"editable"]; 115 | [patterns addObject:thePattern]; 116 | [thePattern release]; 117 | } 118 | [defPats release]; 119 | } 120 | 121 | [patterns addObjectsFromArray:[[NSUserDefaults standardUserDefaults] objectForKey:@"patterns"]]; 122 | } 123 | return self; 124 | } 125 | - (void)awakeFromNib 126 | { 127 | // set the table actions 128 | [patternList setTarget:self]; 129 | [patternList setDoubleAction:@selector(editPattern:)]; 130 | } 131 | 132 | #pragma mark Deallocator 133 | - (void)dealloc 134 | { 135 | [patterns release]; 136 | [super dealloc]; 137 | } 138 | 139 | #pragma mark Properties 140 | - (NSArray *)patterns 141 | { 142 | return patterns; 143 | } 144 | 145 | #pragma mark Editing methods 146 | - (IBAction)addPattern:(id)sender 147 | { 148 | editingRow = -1; 149 | 150 | [descriptionField setStringValue:@""]; 151 | [patternField setStringValue:@""]; 152 | [redComponentField selectItemWithTag:CTagForPatternFormat(CHexPair)]; 153 | [greenComponentField selectItemWithTag:CTagForPatternFormat(CHexPair)]; 154 | [blueComponentField selectItemWithTag:CTagForPatternFormat(CHexPair)]; 155 | [hueComponentField selectItemWithTag:CTagForPatternFormat(CShortDecimalOver360)]; 156 | [saturationComponentField selectItemWithTag:CTagForPatternFormat(CShortDecimalOver100)]; 157 | [lightnessComponentField selectItemWithTag:CTagForPatternFormat(CShortDecimalOver100)]; 158 | [alphaComponentField selectItemWithTag:CTagForPatternFormat(CShortDecimalOver1)]; 159 | 160 | [NSApp beginSheet:patternEditSheet modalForWindow:prefsWindow modalDelegate:self didEndSelector:@selector(didEndSheet:returnCode:contextInfo:) contextInfo:nil]; 161 | [patternEditSheet makeFirstResponder:descriptionField]; 162 | } 163 | - (IBAction)removePattern:(id)sender 164 | { 165 | NSInteger selection = [patternList selectedRow]; 166 | if (selection > -1) 167 | { 168 | NSDictionary *pattern = [patterns objectAtIndex:selection]; 169 | if (![[pattern objectForKey:@"editable"] boolValue]) 170 | return; 171 | 172 | [patterns removeObjectAtIndex:selection]; 173 | } 174 | [self savePatternList]; 175 | } 176 | - (IBAction)editPattern:(id)sender 177 | { 178 | NSInteger selection = [patternList selectedRow]; 179 | if (selection > -1) 180 | { 181 | editingRow = selection; 182 | 183 | NSDictionary *pattern = [patterns objectAtIndex:selection]; 184 | if (![[pattern objectForKey:@"editable"] boolValue]) 185 | return; 186 | 187 | // open edit sheet 188 | [descriptionField setStringValue:[pattern objectForKey:@"description"]]; 189 | [patternField setStringValue:[pattern objectForKey:@"pattern"]]; 190 | [redComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"redFormat"])]; 191 | [greenComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"greenFormat"])]; 192 | [blueComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"blueFormat"])]; 193 | [hueComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"hueFormat"])]; 194 | [saturationComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"saturationFormat"])]; 195 | [lightnessComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"lightnessFormat"])]; 196 | [alphaComponentField selectItemWithTag:CTagForPatternFormat([pattern objectForKey:@"alphaFormat"])]; 197 | 198 | [NSApp beginSheet:patternEditSheet modalForWindow:prefsWindow modalDelegate:self didEndSelector:@selector(didEndSheet:returnCode:contextInfo:) contextInfo:nil]; 199 | [patternEditSheet makeFirstResponder:descriptionField]; 200 | } 201 | } 202 | 203 | - (IBAction)saveSettings:(id)sender 204 | { 205 | NSMutableDictionary *theItem = [NSMutableDictionary dictionary]; 206 | 207 | [theItem setObject:[descriptionField stringValue] forKey:@"description"]; 208 | [theItem setObject:[patternField stringValue] forKey:@"pattern"]; 209 | [theItem setObject:CPatternFormatForTag([[redComponentField selectedItem] tag]) forKey:@"redFormat"]; 210 | [theItem setObject:CPatternFormatForTag([[greenComponentField selectedItem] tag]) forKey:@"greenFormat"]; 211 | [theItem setObject:CPatternFormatForTag([[blueComponentField selectedItem] tag]) forKey:@"blueFormat"]; 212 | [theItem setObject:CPatternFormatForTag([[hueComponentField selectedItem] tag]) forKey:@"hueFormat"]; 213 | [theItem setObject:CPatternFormatForTag([[saturationComponentField selectedItem] tag]) forKey:@"saturationFormat"]; 214 | [theItem setObject:CPatternFormatForTag([[lightnessComponentField selectedItem] tag]) forKey:@"lightnessFormat"]; 215 | [theItem setObject:CPatternFormatForTag([[alphaComponentField selectedItem] tag]) forKey:@"alphaFormat"]; 216 | [theItem setObject:[NSNumber numberWithBool:YES] forKey:@"editable"]; 217 | 218 | if (editingRow > -1) 219 | [patterns replaceObjectAtIndex:editingRow withObject:theItem]; 220 | else 221 | [patterns addObject:theItem]; 222 | 223 | [NSApp endSheet:patternEditSheet]; 224 | } 225 | - (IBAction)cancelEdit:(id)sender 226 | { 227 | [NSApp endSheet:patternEditSheet]; 228 | } 229 | - (void)savePatternList 230 | { 231 | [patternList reloadData]; 232 | [appController populatePatternSelector]; 233 | 234 | NSMutableArray *patternTemp = [[NSMutableArray alloc] init]; 235 | for (NSDictionary *pattern in patterns) 236 | { 237 | if ([[pattern objectForKey:@"editable"] boolValue]) 238 | [patternTemp addObject:pattern]; 239 | } 240 | 241 | [[NSUserDefaults standardUserDefaults] setObject:patternTemp forKey:@"patterns"]; 242 | [patternTemp release]; 243 | } 244 | - (void)didEndSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo 245 | { 246 | editingRow = -1; 247 | [self savePatternList]; 248 | [sheet orderOut:self]; 249 | } 250 | 251 | #pragma mark Table data source methods 252 | - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView 253 | { 254 | return [patterns count]; 255 | } 256 | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex 257 | { 258 | return [[patterns objectAtIndex:rowIndex] objectForKey:@"description"]; 259 | } 260 | 261 | #pragma mark Table view delegate methods 262 | - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex 263 | { 264 | return [aCell setEnabled:[[[patterns objectAtIndex:rowIndex] objectForKey:@"editable"] boolValue]]; 265 | } 266 | 267 | @end 268 | -------------------------------------------------------------------------------- /Frameworks/BGHUDAppKit.framework/Versions/A/Resources/README: -------------------------------------------------------------------------------- 1 | == ABOUT == 2 | 3 | BGHUDAppKit 4 | Tim Davis @ BinaryMethod.com 5 | http://www.binarymethod.com/bghudappkit 6 | 7 | The missing OS X Leopard/Snow Leopard HUD controls. 8 | 9 | BGHUDAppKit is a small framework I designed to fill the gap left by Apple when 10 | they released the nifty HUD window but forgot to release their controls that match it. 11 | There are few really good frameworks out there that will provide you with the HUD style 12 | interface. This is where the big change in BGHUDAppKit becomes clear. I use absolutely 13 | NO resources or images to give these controls the HUD appearance. BGHUDAppKit uses 14 | 100% native Cocoa drawing functions like NSColor, NSGradient and NSBezierPath. Because 15 | of this the framework is much smaller, provides a cleaner interface and the biggie... 16 | it is already Resolution Independence ready. And of course it is free and open-source. 17 | 18 | Project is hosted on GitHub @ http://github.com/binarygod/BGHUDAppKit/tree/master 19 | Public GIT Clone URL: git://github.com/binarygod/BGHUDAppKit.git 20 | 21 | == REQUIREMENTS == 22 | 23 | OS X Leopard 10.5* or OS X Snow Leopard 10.6 (NOT compatible with any OS lower than 10.5) 24 | 25 | *See compiling notes for help compiling OS X Leopard 10.5 26 | 27 | == COMPILING == 28 | 29 | After cloning/downloading the repository open BGHUDAppKit.xcodeproj, follow the 30 | instructions for your particular OS version below. 31 | 32 | OS X Snow Leopard 10.6 33 | 34 | - Compile by clicking build. 35 | - Your finish. 36 | 37 | OS X Leopard 10.5 38 | 39 | - Expand the "Targets" group item. 40 | - Double-Click on "BGHUDAppKitPlugin" to open the 'Target "BGHUDAppKitPlugin" Info' 41 | window. 42 | - Select the Build tab 43 | - Select "All Configurations" from the "Configuration" drop down. 44 | - Change the "Architectures" setting to "32-Bit Universal" 45 | 46 | The reason for this is that the Interface Builder frameworks on OS X Leopard 10.5 47 | do not have 64-Bit capabilities. 48 | 49 | == INSTALLATION == 50 | 51 | Installation is on a per project basis, BGHUDAppKit was designed to be embedded in your 52 | project and distributed. 53 | 54 | 1. Add BGHUDAppKit to your project 55 | ⁃ Right-Click (Ctrl-Click) on your "Frameworks" group in XCode 56 | ⁃ Select "Add > Existing Frameworks..." 57 | ⁃ Navigate to BGHUDAppKit.framework and hit "Add" 58 | 59 | 2. In your active target add a new "Copy Files Build Phase" 60 | ⁃ Right-Click (Ctrl-Click) on project Target under "Targets" group in XCode. 61 | ⁃ Select "Add > New Build Phase › New Copy Files Build Phase" 62 | ⁃ Double-Click new "Copy Files" build phase 63 | ⁃ Select "Frameworks" from Destination drop down. (Close the window) 64 | 65 | 3. Add BGHUDAppKit.framework to newly created build phase 66 | ⁃ Drag BGHUDAppKit.framework from "Frameworks" group in XCode to "Copy Files" build 67 | phase under "Targets" group in XCode. 68 | 69 | Build and go. If you inspect your .APP you should now see BGHUDAppKit.framework sitting 70 | peacefully in your {APP}Contents/Frameworks directory. 71 | 72 | == USAGE == 73 | 74 | Using BGHUDAppKit is as simple as opening your project Nib/Xib and designing your interface. 75 | BGHUDAppKit comes with an IBPlugin, when your open the Nib/Xib the plugin will be loaded 76 | automatically. Just look for the Library item called "BGHUDAppKit", now you can use it 77 | like any other control in Apple. Drag and Drop, setup your properties and run. 78 | 79 | == THEMEING == 80 | 81 | BGHUDAppKit is more powerful than it first appears to be. I have designed the classes 82 | with the mentality of reinvention. Why should everyone have to reinvent the NSScroller 83 | if they want to apply iTunes style colors to it? You shouldn't have to. I've done the 84 | hard work and research for you. My purpose in life as a developer is to make life easier, 85 | programmers are lazy :) Every control in BGHUDAppKit uses a theme, you can have one 86 | theme for every control or you could have 10 different themes for 10 different controls. 87 | 88 | 1. Create a new Theme 89 | 90 | Creating a theme does take a little bit of work. If you look inside the Headers 91 | directory of BGHUDAppKit.framework you will see a file name "BGTheme.h". This is 92 | the master theme file. Inside of it will see every theme method available and a 93 | short description of each explaining where it is used at. 94 | 95 | Just create a subclass of BGTheme and start overriding whatever methods you need 96 | to change. 97 | 98 | 2. Adding to ThemeManager 99 | 100 | BGHUDAppKit uses a singleton BGThemeManager obect. This makes it so that there 101 | is only ever one instance of the theme allocated, thus saving memory. In this 102 | example my subclassed theme is myTheme.m. This code is in my main AppController 103 | object. 104 | 105 | # Example Code 106 | -(void)awakeFromNib { 107 | 108 | [[BGThemeManager keyedManager] setTheme: [[[myTheme alloc] init] autorelease] 109 | forKey: @"myTheme"]; 110 | } 111 | 112 | Whats happening? We are telling BGThemeManagers keyedManager object that we 113 | want to add a new theme instance to its memory with a key of "myTheme". You can 114 | add as many as you like. 115 | 116 | Two default themes are provided for you. The one you'll see when you Drag'n'Drop 117 | from the IB palette is "gradientTheme", this is also the theme you will always see 118 | when you simulate the interface in IB. This is because your custom theme object 119 | doesn't exist yet. The second default theme is "flatTheme", this theme is just a 120 | slight dark gradient, giving the controls a less 'candy' look. 121 | 122 | 3. Using the new theme 123 | 124 | Making the controls use this theme is even easier. In IB a new inspector panel 125 | will present itself when you are in the proper focus for that control. Some 126 | controls, like buttons, have this panel in the Cell focus. Click on a button once, 127 | and then again and it will get a halo around it. You will see a new section 128 | called "Theme" with a text box labeled "Theme Key". Just type your theme key in 129 | there and when you build the app that control (and only that control) will use 130 | your custom theme. 131 | 132 | Hint: Controls that are a combination of two controls, such as NSOutlineView, 133 | NSTableView, will have to have the theme set for the ScrollView and the underlying 134 | object, in the example above they would be OutlineView, and TableView respectively. 135 | 136 | == SHRINKING == 137 | 138 | BGHUDAppKit is appox 1.0 Mb in size. This is quite large for a framework this simple. 139 | The extra disk space is taken up by the BGHUDAppKitPlugin which is the IB Plugin. This 140 | really doesn't need to be in your distributed app, the framework will function normally 141 | without it. Do NOT delete BGHUDAppKitPlugin from your source BGHUDAppKit.framework. 142 | 143 | The reason the framework is build this way is because IB will automatically look in 144 | a linked framework for a plugin. This seemed, to me at least, the most logical and 145 | easiest way to distribute the plugin to you the developer. 146 | 147 | A way to shrink your final APP size is really simple. Create a new "Run Script" build 148 | phase and copy the following line to it. 149 | 150 | rm -fR "${CONFIGURATION_BUILD_DIR}/${WRAPPER_NAME}/Contents/Frameworks/BGHUDAppKit.framework/Versions/Current/Resources" 151 | 152 | What happens is this: When you build XCode will look in your final .APP folder and 153 | remove the unneeded Resources directory that BGHUDAppKitPlugin resides in. This 154 | shrinks BGHUDAppKit.framework down to approx 400k. Quite a big difference. 155 | 156 | == LICENSE == 157 | 158 | BGHUDAppKit - Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com)
 159 | All rights reserved. 160 | 161 | Redistribution and use in source and binary forms, with or without modification, are 162 | permitted provided that the following conditions are met: 163 | 164 | • Redistributions of source code must retain the above copyright notice, this list 165 | of conditions and the following disclaimer. 166 | • Redistributions in binary form must reproduce the above copyright notice, this list 167 | of conditions and the following disclaimer in the documentation and/or other materials 168 | provided with the distribution. 169 | • Neither the name of BinaryMethod.com nor the names of its contributors may be 170 | used to endorse or promote products derived from this software without specific 171 | prior written permission. 172 | 173 | 174 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 175 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 176 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 177 | SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 178 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 179 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 180 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY 181 | , WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 182 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 183 | OF THE POSSIBILITY OF SUCH DAMAGE. 184 | 185 | == VERSION HISTORY == 186 | 187 | -------------------------------------------------------------------------------- /Classes/NSColor+CAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSColor+CAdditions.m 3 | // Colors 4 | // 5 | // Created by Matt Patenaude on 7/19/09. 6 | // Copyright 2009 Matt Patenaude. All rights reserved. 7 | // 8 | 9 | #import "NSColor+CAdditions.h" 10 | #import "MPTidbits.h" 11 | 12 | #pragma mark Hex functions 13 | NSString *CDecToHexPair(NSInteger decNumber) 14 | { 15 | if (decNumber > 255) 16 | { 17 | NSLog(@"Error: CADecToHexPair cannot accept numbers larger than 255"); 18 | return nil; 19 | } 20 | 21 | NSArray *hTable = [NSArray arrayWithObjects:@"a", @"b", @"c", @"d", @"e", @"f", nil]; 22 | 23 | NSString *pair = @"%@%@"; 24 | 25 | NSInteger digOne = decNumber / 16; 26 | NSInteger digTwo = decNumber % 16; 27 | 28 | NSString *p1; 29 | if (digOne < 10) 30 | p1 = [NSString stringWithFormat:@"%d", digOne]; 31 | else 32 | p1 = [hTable objectAtIndex:(digOne - 10)]; 33 | 34 | NSString *p2; 35 | if (digTwo < 10) 36 | p2 = [NSString stringWithFormat:@"%d", digTwo]; 37 | else 38 | p2 = [hTable objectAtIndex:(digTwo - 10)]; 39 | 40 | return [NSString stringWithFormat:pair, p1, p2]; 41 | } 42 | NSString *CDecToHexSingleton(NSInteger decNumber) 43 | { 44 | if (decNumber > 255) 45 | { 46 | NSLog(@"Error: CADecToHexSingleton cannot accept numbers larger than 255"); 47 | return nil; 48 | } 49 | 50 | NSArray *hTable = [NSArray arrayWithObjects:@"a", @"b", @"c", @"d", @"e", @"f", nil]; 51 | 52 | NSInteger digOne = decNumber / 16; 53 | NSInteger digTwo = decNumber % 16; 54 | 55 | if (digOne != digTwo) 56 | { 57 | NSLog(@"Error: cannot represent %d as singleton", decNumber); 58 | return nil; 59 | } 60 | 61 | NSString *p1; 62 | if (digOne < 10) 63 | p1 = [NSString stringWithFormat:@"%d", digOne]; 64 | else 65 | p1 = [hTable objectAtIndex:(digOne - 10)]; 66 | 67 | return p1; 68 | } 69 | 70 | #pragma mark Formatting function 71 | NSString *CFormattedComponent(CGFloat component, NSString *theFormat) 72 | { 73 | if ([theFormat isEqualToString:CHexSingleton]) 74 | { 75 | NSInteger dec = MPRound(component * 255.0); 76 | return CDecToHexSingleton(dec); 77 | } 78 | else if ([theFormat isEqualToString:CHexPair]) 79 | { 80 | NSInteger dec = MPRound(component * 255.0); 81 | return CDecToHexPair(dec); 82 | } 83 | else if ([theFormat isEqualToString:CShortDecimalOver1]) 84 | return [NSString stringWithFormat:@"%0.4f", component]; 85 | else if ([theFormat isEqualToString:CIntegerOver100]) 86 | return [NSString stringWithFormat:@"%d", MPRound(component * 100.0)]; 87 | else if ([theFormat isEqualToString:CShortDecimalOver100]) 88 | return [NSString stringWithFormat:@"%0.4f", (component * 100.0)]; 89 | else if ([theFormat isEqualToString:CFloatOver100]) 90 | return [NSString stringWithFormat:@"%f", (component * 100.0)]; 91 | else if ([theFormat isEqualToString:CIntegerOver255]) 92 | return [NSString stringWithFormat:@"%d", MPRound(component * 255.0)]; 93 | else if ([theFormat isEqualToString:CShortDecimalOver255]) 94 | return [NSString stringWithFormat:@"%0.4f", (component * 255.0)]; 95 | else if ([theFormat isEqualToString:CFloatOver255]) 96 | return [NSString stringWithFormat:@"%f", (component * 255.0)]; 97 | else if ([theFormat isEqualToString:CIntegerOver360]) 98 | return [NSString stringWithFormat:@"%d", MPRound(component * 360.0)]; 99 | else if ([theFormat isEqualToString:CShortDecimalOver360]) 100 | return [NSString stringWithFormat:@"%0.4f", (component * 360.0)]; 101 | else if ([theFormat isEqualToString:CFloatOver360]) 102 | return [NSString stringWithFormat:@"%f", (component * 360.0)]; 103 | // else if ([theFormat isEqualToString:CFloatOver1]) 104 | return [NSString stringWithFormat:@"%f", component]; 105 | } 106 | 107 | @implementation NSColor (CAdditions) 108 | 109 | #pragma mark Input methods 110 | + (NSColor *)colorWithCSSColor:(NSString *)theString 111 | { 112 | NSMutableString *rule = [[[theString lowercaseString] mutableCopy] autorelease]; 113 | [rule replaceOccurrencesOfString:@" " withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 114 | [rule replaceOccurrencesOfString:@"\t" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 115 | [rule replaceOccurrencesOfString:@";" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 116 | 117 | // rgb() and rgba() rules 118 | if ([rule hasPrefix:@"rgb"]) 119 | { 120 | [rule replaceOccurrencesOfString:@"rgb" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 121 | [rule replaceOccurrencesOfString:@"a(" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 122 | [rule replaceOccurrencesOfString:@"(" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 123 | [rule replaceOccurrencesOfString:@")" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 124 | NSArray *components = [rule componentsSeparatedByString:@","]; 125 | 126 | CGFloat comps[4] = {0.0, 0.0, 0.0, 1.0}; 127 | 128 | NSUInteger i; 129 | for (i = 0; i < 3; i++) 130 | { 131 | NSString *part = [components objectAtIndex:i]; 132 | if ([part rangeOfString:@"%"].location != NSNotFound) 133 | { 134 | part = [part stringByReplacingOccurrencesOfString:@"%" withString:@""]; 135 | comps[i] = ([part floatValue] / 100.0); 136 | } 137 | else 138 | comps[i] = ([part floatValue] / 255.0); 139 | } 140 | 141 | if ([components count] > 3) 142 | comps[3] = [[components objectAtIndex:3] floatValue]; 143 | 144 | return [NSColor colorWithCalibratedRed:comps[0] green:comps[1] blue:comps[2] alpha:comps[3]]; 145 | } 146 | // hsl() and hsla() rules 147 | else if ([rule hasPrefix:@"hsl"]) 148 | { 149 | [rule replaceOccurrencesOfString:@"hsl" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 150 | [rule replaceOccurrencesOfString:@"a(" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 151 | [rule replaceOccurrencesOfString:@"(" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 152 | [rule replaceOccurrencesOfString:@")" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 153 | NSArray *components = [rule componentsSeparatedByString:@","]; 154 | 155 | CGFloat comps[4] = {0.0, 0.0, 0.0, 1.0}; 156 | 157 | NSUInteger i; 158 | for (i = 0; i < 3; i++) 159 | { 160 | NSString *part = [components objectAtIndex:i]; 161 | if ([part rangeOfString:@"%"].location != NSNotFound) 162 | { 163 | part = [part stringByReplacingOccurrencesOfString:@"%" withString:@""]; 164 | comps[i] = ([part floatValue] / 100.0); 165 | } 166 | else 167 | comps[i] = ([part floatValue] / 360.0); 168 | } 169 | 170 | if ([components count] > 3) 171 | comps[3] = [[components objectAtIndex:3] floatValue]; 172 | 173 | // HSL-to-HSV 174 | comps[2] *= 2.0; 175 | comps[1] *= (comps[2] <= 1.0) ? comps[2] : 2.0 - comps[2]; 176 | 177 | return [NSColor colorWithCalibratedHue:comps[0] saturation:((2.0 * comps[1]) / (comps[2] + comps[1])) brightness:((comps[2] + comps[1]) / 2.0) alpha:comps[3]]; 178 | } 179 | // #rrggbb and #rgb 180 | else if ([rule hasPrefix:@"#"] || ([rule length] == 6 || [rule length] == 3)) 181 | { 182 | [rule replaceOccurrencesOfString:@"#" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [rule length])]; 183 | 184 | CGFloat comps[4] = {0.0, 0.0, 0.0, 1.0}; 185 | 186 | BOOL singletons = ([rule length] == 3); 187 | NSUInteger i; 188 | for (i = 0; i < 3; i++) 189 | { 190 | NSString *component = [rule substringWithRange:NSMakeRange(((singletons) ? i : i * 2), ((singletons) ? 1 : 2))]; 191 | NSScanner *theScanner = [NSScanner scannerWithString:((singletons) ? [NSString stringWithFormat:@"%@%@", component, component] : component)]; 192 | 193 | unsigned thePart; 194 | [theScanner scanHexInt:&thePart]; 195 | 196 | comps[i] = (CGFloat)thePart / 255.0; 197 | } 198 | 199 | return [NSColor colorWithCalibratedRed:comps[0] green:comps[1] blue:comps[2] alpha:comps[3]]; 200 | } 201 | 202 | return [NSColor blackColor]; 203 | } 204 | 205 | #pragma mark Output methods 206 | - (NSString *)redComponentWithFormat:(NSString *)theString 207 | { 208 | return CFormattedComponent([self redComponent], theString); 209 | } 210 | - (NSString *)greenComponentWithFormat:(NSString *)theString 211 | { 212 | return CFormattedComponent([self greenComponent], theString); 213 | } 214 | - (NSString *)blueComponentWithFormat:(NSString *)theString 215 | { 216 | return CFormattedComponent([self blueComponent], theString); 217 | } 218 | - (NSString *)hueComponentWithFormat:(NSString *)theString 219 | { 220 | return CFormattedComponent([self hueComponent], theString); 221 | } 222 | - (NSString *)saturationComponentWithFormat:(NSString *)theString 223 | { 224 | // HSV-to-HSL hack 225 | CGFloat saturationComponent = [self saturationComponent] * [self brightnessComponent]; 226 | CGFloat lightnessComponent = (2.0 - [self saturationComponent]) * [self brightnessComponent]; 227 | saturationComponent /= (lightnessComponent <= 1.0) ? lightnessComponent : (2.0 - lightnessComponent); 228 | 229 | return CFormattedComponent(saturationComponent, theString); 230 | } 231 | - (NSString *)lightnessComponentWithFormat:(NSString *)theString 232 | { 233 | // HSV-to-HSL hack 234 | CGFloat lightnessComponent = ((2.0 - [self saturationComponent]) * [self brightnessComponent]) / 2.0; 235 | 236 | return CFormattedComponent(lightnessComponent, theString); 237 | } 238 | - (NSString *)alphaComponentWithFormat:(NSString *)theString 239 | { 240 | return CFormattedComponent([self alphaComponent], theString); 241 | } 242 | 243 | - (NSString *)stringWithPattern:(NSDictionary *)thePatternDict 244 | { 245 | NSString *thePattern = [thePatternDict objectForKey:@"pattern"]; 246 | 247 | NSString *redFormat = [thePatternDict objectForKey:@"redFormat"]; 248 | NSString *greenFormat = [thePatternDict objectForKey:@"greenFormat"]; 249 | NSString *blueFormat = [thePatternDict objectForKey:@"blueFormat"]; 250 | 251 | NSString *hueFormat = [thePatternDict objectForKey:@"hueFormat"]; 252 | NSString *saturationFormat = [thePatternDict objectForKey:@"saturationFormat"]; 253 | NSString *lightnessFormat = [thePatternDict objectForKey:@"lightnessFormat"]; 254 | 255 | NSString *alphaFormat = [thePatternDict objectForKey:@"alphaFormat"]; 256 | 257 | // make a mutable string to save memory 258 | NSMutableString *output = [thePattern mutableCopy]; 259 | 260 | // start by escaping double-percents 261 | [output replaceOccurrencesOfString:@"%%" withString:@"--double-percent-escaped--" options:NSLiteralSearch range:NSMakeRange(0, [output length])]; 262 | 263 | // format the components 264 | [output replaceOccurrencesOfString:@"%r" withString:[self redComponentWithFormat:redFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 265 | [output replaceOccurrencesOfString:@"%g" withString:[self greenComponentWithFormat:greenFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 266 | [output replaceOccurrencesOfString:@"%b" withString:[self blueComponentWithFormat:blueFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 267 | [output replaceOccurrencesOfString:@"%h" withString:[self hueComponentWithFormat:hueFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 268 | [output replaceOccurrencesOfString:@"%s" withString:[self saturationComponentWithFormat:saturationFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 269 | [output replaceOccurrencesOfString:@"%l" withString:[self lightnessComponentWithFormat:lightnessFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 270 | [output replaceOccurrencesOfString:@"%a" withString:[self alphaComponentWithFormat:alphaFormat] options:NSCaseInsensitiveSearch range:NSMakeRange(0, [output length])]; 271 | 272 | // replace removed percents 273 | [output replaceOccurrencesOfString:@"--double-percent-escaped--" withString:@"%" options:NSLiteralSearch range:NSMakeRange(0, [output length])]; 274 | 275 | // return the results 276 | return [output autorelease]; 277 | } 278 | 279 | @end 280 | -------------------------------------------------------------------------------- /Colors.xcodeproj/matt.pbxuser: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | 089C165DFE840E0CC02AAC07 /* English */ = { 4 | uiCtxt = { 5 | sepNavIntBoundsRect = "{{0, 0}, {691, 430}}"; 6 | sepNavSelRange = "{100, 0}"; 7 | sepNavVisRange = "{0, 102}"; 8 | sepNavWindowFrame = "{{61, 273}, {750, 558}}"; 9 | }; 10 | }; 11 | 29B97313FDCFA39411CA2CEA /* Project object */ = { 12 | activeBuildConfigurationName = Release; 13 | activeExecutable = C976A2040D96FC3B0066BDC3 /* Colors */; 14 | activeTarget = 8D1107260486CEB800E47090 /* Colors */; 15 | addToTargets = ( 16 | 8D1107260486CEB800E47090 /* Colors */, 17 | ); 18 | codeSenseManager = C976A2130D96FC3F0066BDC3 /* Code sense */; 19 | executables = ( 20 | C976A2040D96FC3B0066BDC3 /* Colors */, 21 | ); 22 | perUserDictionary = { 23 | PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { 24 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 25 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 26 | PBXFileTableDataSourceColumnWidthsKey = ( 27 | 20, 28 | 686, 29 | 20, 30 | 48, 31 | 43, 32 | 43, 33 | 20, 34 | ); 35 | PBXFileTableDataSourceColumnsKey = ( 36 | PBXFileDataSource_FiletypeID, 37 | PBXFileDataSource_Filename_ColumnID, 38 | PBXFileDataSource_Built_ColumnID, 39 | PBXFileDataSource_ObjectSize_ColumnID, 40 | PBXFileDataSource_Errors_ColumnID, 41 | PBXFileDataSource_Warnings_ColumnID, 42 | PBXFileDataSource_Target_ColumnID, 43 | ); 44 | }; 45 | PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { 46 | PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; 47 | PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; 48 | PBXFileTableDataSourceColumnWidthsKey = ( 49 | 20, 50 | 646, 51 | 60, 52 | 20, 53 | 48, 54 | 43, 55 | 43, 56 | ); 57 | PBXFileTableDataSourceColumnsKey = ( 58 | PBXFileDataSource_FiletypeID, 59 | PBXFileDataSource_Filename_ColumnID, 60 | PBXTargetDataSource_PrimaryAttribute, 61 | PBXFileDataSource_Built_ColumnID, 62 | PBXFileDataSource_ObjectSize_ColumnID, 63 | PBXFileDataSource_Errors_ColumnID, 64 | PBXFileDataSource_Warnings_ColumnID, 65 | ); 66 | }; 67 | PBXPerProjectTemplateStateSaveDate = 279089515; 68 | PBXWorkspaceStateSaveDate = 279089515; 69 | }; 70 | perUserProjectItems = { 71 | C91372E810269AEC003C0025 /* PlistBookmark */ = C91372E810269AEC003C0025 /* PlistBookmark */; 72 | C9321DC41013D51500979881 /* PBXTextBookmark */ = C9321DC41013D51500979881 /* PBXTextBookmark */; 73 | C972A2E00DF21232006F159E /* PBXTextBookmark */ = C972A2E00DF21232006F159E /* PBXTextBookmark */; 74 | C984AB6F10A29190003176C9 /* PBXTextBookmark */ = C984AB6F10A29190003176C9 /* PBXTextBookmark */; 75 | C984AB7010A29190003176C9 /* PBXTextBookmark */ = C984AB7010A29190003176C9 /* PBXTextBookmark */; 76 | C984AB7110A29190003176C9 /* PBXTextBookmark */ = C984AB7110A29190003176C9 /* PBXTextBookmark */; 77 | C984AB7210A29190003176C9 /* PBXTextBookmark */ = C984AB7210A29190003176C9 /* PBXTextBookmark */; 78 | C984AB7310A29190003176C9 /* PBXTextBookmark */ = C984AB7310A29190003176C9 /* PBXTextBookmark */; 79 | C984AB7410A29190003176C9 /* PBXTextBookmark */ = C984AB7410A29190003176C9 /* PBXTextBookmark */; 80 | C984AB7510A29190003176C9 /* PBXTextBookmark */ = C984AB7510A29190003176C9 /* PBXTextBookmark */; 81 | C984AB7610A29190003176C9 /* PBXTextBookmark */ = C984AB7610A29190003176C9 /* PBXTextBookmark */; 82 | C984AB7710A29190003176C9 /* PBXTextBookmark */ = C984AB7710A29190003176C9 /* PBXTextBookmark */; 83 | C984AB7810A29190003176C9 /* PBXTextBookmark */ = C984AB7810A29190003176C9 /* PBXTextBookmark */; 84 | C984AB7910A29190003176C9 /* PBXTextBookmark */ = C984AB7910A29190003176C9 /* PBXTextBookmark */; 85 | C984AB7A10A29190003176C9 /* PBXTextBookmark */ = C984AB7A10A29190003176C9 /* PBXTextBookmark */; 86 | C9A04151101BAC6400ACFD6C /* PBXTextBookmark */ = C9A04151101BAC6400ACFD6C /* PBXTextBookmark */; 87 | C9BD6E41107A7DD30035697C /* PBXBookmark */ = C9BD6E41107A7DD30035697C /* PBXBookmark */; 88 | C9BD6E44107A7E710035697C /* PlistBookmark */ = C9BD6E44107A7E710035697C /* PlistBookmark */; 89 | }; 90 | sourceControlManager = C976A2120D96FC3F0066BDC3 /* Source Control */; 91 | userBuildSettings = { 92 | }; 93 | }; 94 | 29B97316FDCFA39411CA2CEA /* main.m */ = { 95 | uiCtxt = { 96 | sepNavIntBoundsRect = "{{0, 0}, {864, 380}}"; 97 | sepNavSelRange = "{0, 0}"; 98 | sepNavVisRange = "{0, 254}"; 99 | }; 100 | }; 101 | 8D1107260486CEB800E47090 /* Colors */ = { 102 | activeExec = 0; 103 | executables = ( 104 | C976A2040D96FC3B0066BDC3 /* Colors */, 105 | ); 106 | }; 107 | 8D1107310486CEB800E47090 /* Info.plist */ = { 108 | uiCtxt = { 109 | sepNavIntBoundsRect = "{{0, 0}, {691, 430}}"; 110 | sepNavSelRange = "{690, 0}"; 111 | sepNavVisRange = "{0, 831}"; 112 | sepNavWindowFrame = "{{84, 252}, {750, 558}}"; 113 | }; 114 | }; 115 | C91372E810269AEC003C0025 /* PlistBookmark */ = { 116 | isa = PlistBookmark; 117 | fRef = C9EAF91E1013A04D00A92931 /* DefaultPatterns.plist */; 118 | fallbackIsa = PBXBookmark; 119 | isK = 0; 120 | kPath = ( 121 | ); 122 | name = /Users/matt/Documents/Colors/DefaultPatterns.plist; 123 | rLen = 0; 124 | rLoc = 2147483647; 125 | }; 126 | C9321DC41013D51500979881 /* PBXTextBookmark */ = { 127 | isa = PBXTextBookmark; 128 | fRef = 29B97316FDCFA39411CA2CEA /* main.m */; 129 | name = "main.m: 1"; 130 | rLen = 0; 131 | rLoc = 0; 132 | rType = 0; 133 | vrLen = 254; 134 | vrLoc = 0; 135 | }; 136 | C94AEBF510139C820029A1F6 /* CController.h */ = { 137 | uiCtxt = { 138 | sepNavIntBoundsRect = "{{0, 0}, {864, 689}}"; 139 | sepNavSelRange = "{822, 37}"; 140 | sepNavVisRange = "{288, 746}"; 141 | sepNavWindowFrame = "{{15, 265}, {926, 608}}"; 142 | }; 143 | }; 144 | C94AEBF610139C820029A1F6 /* CController.m */ = { 145 | uiCtxt = { 146 | sepNavIntBoundsRect = "{{0, 0}, {1146, 1417}}"; 147 | sepNavSelRange = "{2495, 0}"; 148 | sepNavVisRange = "{2179, 773}"; 149 | sepNavWindowFrame = "{{15, 265}, {926, 608}}"; 150 | }; 151 | }; 152 | C972A2E00DF21232006F159E /* PBXTextBookmark */ = { 153 | isa = PBXTextBookmark; 154 | fRef = 089C165DFE840E0CC02AAC07 /* English */; 155 | name = "InfoPlist.strings: 3"; 156 | rLen = 0; 157 | rLoc = 102; 158 | rType = 0; 159 | vrLen = 97; 160 | vrLoc = 0; 161 | }; 162 | C976A2040D96FC3B0066BDC3 /* Colors */ = { 163 | isa = PBXExecutable; 164 | activeArgIndices = ( 165 | ); 166 | argumentStrings = ( 167 | ); 168 | autoAttachOnCrash = 1; 169 | breakpointsEnabled = 0; 170 | configStateDict = { 171 | }; 172 | customDataFormattersEnabled = 1; 173 | dataTipCustomDataFormattersEnabled = 1; 174 | dataTipShowTypeColumn = 1; 175 | dataTipSortType = 0; 176 | debuggerPlugin = GDBDebugging; 177 | disassemblyDisplayState = 0; 178 | dylibVariantSuffix = ""; 179 | enableDebugStr = 1; 180 | environmentEntries = ( 181 | ); 182 | executableSystemSymbolLevel = 0; 183 | executableUserSymbolLevel = 0; 184 | libgmallocEnabled = 0; 185 | name = Colors; 186 | savedGlobals = { 187 | }; 188 | showTypeColumn = 0; 189 | sourceDirectories = ( 190 | ); 191 | }; 192 | C976A2120D96FC3F0066BDC3 /* Source Control */ = { 193 | isa = PBXSourceControlManager; 194 | fallbackIsa = XCSourceControlManager; 195 | isSCMEnabled = 0; 196 | scmConfiguration = { 197 | repositoryNamesForRoots = { 198 | "" = ""; 199 | }; 200 | }; 201 | }; 202 | C976A2130D96FC3F0066BDC3 /* Code sense */ = { 203 | isa = PBXCodeSenseManager; 204 | indexTemplatePath = ""; 205 | }; 206 | C984AB6F10A29190003176C9 /* PBXTextBookmark */ = { 207 | isa = PBXTextBookmark; 208 | fRef = C94AEBF510139C820029A1F6 /* CController.h */; 209 | name = "CController.h: 38"; 210 | rLen = 37; 211 | rLoc = 822; 212 | rType = 0; 213 | vrLen = 746; 214 | vrLoc = 288; 215 | }; 216 | C984AB7010A29190003176C9 /* PBXTextBookmark */ = { 217 | isa = PBXTextBookmark; 218 | fRef = C9EAF91910139F1500A92931 /* CPatternController.h */; 219 | name = "CPatternController.h: 22"; 220 | rLen = 0; 221 | rLoc = 446; 222 | rType = 0; 223 | vrLen = 726; 224 | vrLoc = 301; 225 | }; 226 | C984AB7110A29190003176C9 /* PBXTextBookmark */ = { 227 | isa = PBXTextBookmark; 228 | fRef = C94AEBF610139C820029A1F6 /* CController.m */; 229 | name = "CController.m: 92"; 230 | rLen = 0; 231 | rLoc = 2495; 232 | rType = 0; 233 | vrLen = 773; 234 | vrLoc = 2179; 235 | }; 236 | C984AB7210A29190003176C9 /* PBXTextBookmark */ = { 237 | isa = PBXTextBookmark; 238 | fRef = C9EAF91A10139F1500A92931 /* CPatternController.m */; 239 | name = "CPatternController.m: 251"; 240 | rLen = 0; 241 | rLoc = 7671; 242 | rType = 0; 243 | vrLen = 797; 244 | vrLoc = 7366; 245 | }; 246 | C984AB7310A29190003176C9 /* PBXTextBookmark */ = { 247 | isa = PBXTextBookmark; 248 | fRef = C9EAF9231013A23F00A92931 /* NSColor+CAdditions.h */; 249 | name = "NSColor+CAdditions.h: 33"; 250 | rLen = 0; 251 | rLoc = 875; 252 | rType = 0; 253 | vrLen = 864; 254 | vrLoc = 646; 255 | }; 256 | C984AB7410A29190003176C9 /* PBXTextBookmark */ = { 257 | isa = PBXTextBookmark; 258 | fRef = C9EAF9241013A23F00A92931 /* NSColor+CAdditions.m */; 259 | name = "NSColor+CAdditions.m: 10"; 260 | rLen = 0; 261 | rLoc = 190; 262 | rType = 0; 263 | vrLen = 540; 264 | vrLoc = 3; 265 | }; 266 | C984AB7510A29190003176C9 /* PBXTextBookmark */ = { 267 | isa = PBXTextBookmark; 268 | fRef = C9C31FB2104CB9B500F321FB /* MPTidbits.h */; 269 | name = "MPTidbits.h: 4"; 270 | rLen = 0; 271 | rLoc = 35; 272 | rType = 0; 273 | vrLen = 209; 274 | vrLoc = 0; 275 | }; 276 | C984AB7610A29190003176C9 /* PBXTextBookmark */ = { 277 | isa = PBXTextBookmark; 278 | fRef = C9C31FB3104CB9B500F321FB /* NSCollections+MPTidbits.h */; 279 | name = "NSCollections+MPTidbits.h: 8"; 280 | rLen = 0; 281 | rLoc = 152; 282 | rType = 0; 283 | vrLen = 412; 284 | vrLoc = 0; 285 | }; 286 | C984AB7710A29190003176C9 /* PBXTextBookmark */ = { 287 | isa = PBXTextBookmark; 288 | fRef = C9C31FB4104CB9B500F321FB /* NSCollections+MPTidbits.m */; 289 | name = "NSCollections+MPTidbits.m: 10"; 290 | rLen = 0; 291 | rLoc = 206; 292 | rType = 0; 293 | vrLen = 371; 294 | vrLoc = 0; 295 | }; 296 | C984AB7810A29190003176C9 /* PBXTextBookmark */ = { 297 | isa = PBXTextBookmark; 298 | fRef = C9C31FB5104CB9B500F321FB /* NSString+MPTidbits.h */; 299 | name = "NSString+MPTidbits.h: 12"; 300 | rLen = 0; 301 | rLoc = 202; 302 | rType = 0; 303 | vrLen = 465; 304 | vrLoc = 0; 305 | }; 306 | C984AB7910A29190003176C9 /* PBXTextBookmark */ = { 307 | isa = PBXTextBookmark; 308 | fRef = C9C31FB6104CB9B500F321FB /* NSString+MPTidbits.m */; 309 | name = "NSString+MPTidbits.m: 1"; 310 | rLen = 0; 311 | rLoc = 0; 312 | rType = 0; 313 | vrLen = 511; 314 | vrLoc = 0; 315 | }; 316 | C984AB7A10A29190003176C9 /* PBXTextBookmark */ = { 317 | isa = PBXTextBookmark; 318 | fRef = C9C31FB6104CB9B500F321FB /* NSString+MPTidbits.m */; 319 | name = "NSString+MPTidbits.m: 20"; 320 | rLen = 0; 321 | rLoc = 364; 322 | rType = 0; 323 | vrLen = 511; 324 | vrLoc = 0; 325 | }; 326 | C9A04151101BAC6400ACFD6C /* PBXTextBookmark */ = { 327 | isa = PBXTextBookmark; 328 | fRef = C9A04152101BAC6400ACFD6C /* BGHUDColorWell.h */; 329 | name = "BGHUDColorWell.h: 1"; 330 | rLen = 0; 331 | rLoc = 0; 332 | rType = 0; 333 | vrLen = 1050; 334 | vrLoc = 888; 335 | }; 336 | C9A04152101BAC6400ACFD6C /* BGHUDColorWell.h */ = { 337 | isa = PBXFileReference; 338 | lastKnownFileType = sourcecode.c.h; 339 | name = BGHUDColorWell.h; 340 | path = /Users/matt/Documents/Colors/BGHUDAppKit.framework/Headers/BGHUDColorWell.h; 341 | sourceTree = ""; 342 | }; 343 | C9BD6E41107A7DD30035697C /* PBXBookmark */ = { 344 | isa = PBXBookmark; 345 | fRef = C9BD6E3B107A7DBB0035697C /* hud-prefs.png */; 346 | }; 347 | C9BD6E44107A7E710035697C /* PlistBookmark */ = { 348 | isa = PlistBookmark; 349 | fRef = 8D1107310486CEB800E47090 /* Info.plist */; 350 | fallbackIsa = PBXBookmark; 351 | isK = 0; 352 | kPath = ( 353 | ); 354 | name = /Users/matt/Documents/Colors/Info.plist; 355 | rLen = 0; 356 | rLoc = 9223372036854775808; 357 | }; 358 | C9C31FB2104CB9B500F321FB /* MPTidbits.h */ = { 359 | uiCtxt = { 360 | sepNavIntBoundsRect = "{{0, 0}, {864, 300}}"; 361 | sepNavSelRange = "{35, 0}"; 362 | sepNavVisRange = "{0, 209}"; 363 | }; 364 | }; 365 | C9C31FB3104CB9B500F321FB /* NSCollections+MPTidbits.h */ = { 366 | uiCtxt = { 367 | sepNavIntBoundsRect = "{{0, 0}, {864, 338}}"; 368 | sepNavSelRange = "{152, 0}"; 369 | sepNavVisRange = "{0, 412}"; 370 | }; 371 | }; 372 | C9C31FB4104CB9B500F321FB /* NSCollections+MPTidbits.m */ = { 373 | uiCtxt = { 374 | sepNavIntBoundsRect = "{{0, 0}, {864, 741}}"; 375 | sepNavSelRange = "{206, 0}"; 376 | sepNavVisRange = "{0, 371}"; 377 | }; 378 | }; 379 | C9C31FB5104CB9B500F321FB /* NSString+MPTidbits.h */ = { 380 | uiCtxt = { 381 | sepNavIntBoundsRect = "{{0, 0}, {864, 338}}"; 382 | sepNavSelRange = "{202, 0}"; 383 | sepNavVisRange = "{0, 465}"; 384 | }; 385 | }; 386 | C9C31FB6104CB9B500F321FB /* NSString+MPTidbits.m */ = { 387 | uiCtxt = { 388 | sepNavIntBoundsRect = "{{0, 0}, {864, 702}}"; 389 | sepNavSelRange = "{364, 0}"; 390 | sepNavVisRange = "{0, 511}"; 391 | }; 392 | }; 393 | C9EAF91910139F1500A92931 /* CPatternController.h */ = { 394 | uiCtxt = { 395 | sepNavIntBoundsRect = "{{0, 0}, {864, 923}}"; 396 | sepNavSelRange = "{446, 0}"; 397 | sepNavVisRange = "{301, 726}"; 398 | sepNavWindowFrame = "{{38, 244}, {926, 608}}"; 399 | }; 400 | }; 401 | C9EAF91A10139F1500A92931 /* CPatternController.m */ = { 402 | uiCtxt = { 403 | sepNavIntBoundsRect = "{{0, 0}, {978, 3289}}"; 404 | sepNavSelRange = "{7671, 0}"; 405 | sepNavVisRange = "{7366, 797}"; 406 | sepNavWindowFrame = "{{84, 202}, {926, 608}}"; 407 | }; 408 | }; 409 | C9EAF91E1013A04D00A92931 /* DefaultPatterns.plist */ = { 410 | uiCtxt = { 411 | sepNavWindowFrame = "{{160, 209}, {926, 608}}"; 412 | }; 413 | }; 414 | C9EAF9231013A23F00A92931 /* NSColor+CAdditions.h */ = { 415 | uiCtxt = { 416 | sepNavIntBoundsRect = "{{0, 0}, {864, 676}}"; 417 | sepNavSelRange = "{875, 0}"; 418 | sepNavVisRange = "{646, 864}"; 419 | sepNavWindowFrame = "{{61, 223}, {926, 608}}"; 420 | }; 421 | }; 422 | C9EAF9241013A23F00A92931 /* NSColor+CAdditions.m */ = { 423 | uiCtxt = { 424 | sepNavIntBoundsRect = "{{0, 0}, {864, 3874}}"; 425 | sepNavSelRange = "{190, 0}"; 426 | sepNavVisRange = "{3, 540}"; 427 | sepNavWindowFrame = "{{61, 223}, {926, 608}}"; 428 | }; 429 | }; 430 | } 431 | -------------------------------------------------------------------------------- /Colors.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 45; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; }; 11 | 967555F81689624A008F6B69 /* CController.m in Sources */ = {isa = PBXBuildFile; fileRef = 967555EC1689624A008F6B69 /* CController.m */; }; 12 | 967555F91689624A008F6B69 /* CPatternController.m in Sources */ = {isa = PBXBuildFile; fileRef = 967555EF1689624A008F6B69 /* CPatternController.m */; }; 13 | 967555FB1689624A008F6B69 /* NSCollections+MPTidbits.m in Sources */ = {isa = PBXBuildFile; fileRef = 967555F31689624A008F6B69 /* NSCollections+MPTidbits.m */; }; 14 | 967555FC1689624A008F6B69 /* NSColor+CAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 967555F51689624A008F6B69 /* NSColor+CAdditions.m */; }; 15 | 967555FD1689624A008F6B69 /* NSString+MPTidbits.m in Sources */ = {isa = PBXBuildFile; fileRef = 967555F71689624A008F6B69 /* NSString+MPTidbits.m */; }; 16 | 9675560D16896256008F6B69 /* Colors.icns in Resources */ = {isa = PBXBuildFile; fileRef = 967555FF16896256008F6B69 /* Colors.icns */; }; 17 | 9675560E16896256008F6B69 /* DefaultPatterns.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9675560016896256008F6B69 /* DefaultPatterns.plist */; }; 18 | 9675560F16896256008F6B69 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9675560116896256008F6B69 /* InfoPlist.strings */; }; 19 | 9675561016896256008F6B69 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 9675560316896256008F6B69 /* MainMenu.nib */; }; 20 | 9675561316896256008F6B69 /* hud-prefs.png in Resources */ = {isa = PBXBuildFile; fileRef = 9675560816896256008F6B69 /* hud-prefs.png */; }; 21 | 9675561416896256008F6B69 /* hud-prefs@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9675560916896256008F6B69 /* hud-prefs@2x.png */; }; 22 | 9675561616896256008F6B69 /* magnifier.png in Resources */ = {isa = PBXBuildFile; fileRef = 9675560B16896256008F6B69 /* magnifier.png */; }; 23 | 9675561716896256008F6B69 /* magnifier@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9675560C16896256008F6B69 /* magnifier@2x.png */; }; 24 | 9675561A16896266008F6B69 /* BGHUDAppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9675561816896266008F6B69 /* BGHUDAppKit.framework */; }; 25 | 9675561B16896266008F6B69 /* BWToolkitFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9675561916896266008F6B69 /* BWToolkitFramework.framework */; }; 26 | 9675561D16896295008F6B69 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9675561C16896295008F6B69 /* Info.plist */; }; 27 | 96755620168962AB008F6B69 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9675561F168962AB008F6B69 /* main.m */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXCopyFilesBuildPhase section */ 31 | C9EAF90110139E3F00A92931 /* CopyFiles */ = { 32 | isa = PBXCopyFilesBuildPhase; 33 | buildActionMask = 2147483647; 34 | dstPath = ""; 35 | dstSubfolderSpec = 10; 36 | files = ( 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; 44 | 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; }; 45 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; }; 46 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; }; 47 | 8D1107320486CEB800E47090 /* Colors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Colors.app; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 967555EB1689624A008F6B69 /* CController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CController.h; sourceTree = ""; }; 49 | 967555EC1689624A008F6B69 /* CController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CController.m; sourceTree = ""; }; 50 | 967555ED1689624A008F6B69 /* Colors_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Colors_Prefix.pch; sourceTree = ""; }; 51 | 967555EE1689624A008F6B69 /* CPatternController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CPatternController.h; sourceTree = ""; }; 52 | 967555EF1689624A008F6B69 /* CPatternController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CPatternController.m; sourceTree = ""; }; 53 | 967555F01689624A008F6B69 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 967555F11689624A008F6B69 /* MPTidbits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MPTidbits.h; sourceTree = ""; }; 55 | 967555F21689624A008F6B69 /* NSCollections+MPTidbits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSCollections+MPTidbits.h"; sourceTree = ""; }; 56 | 967555F31689624A008F6B69 /* NSCollections+MPTidbits.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSCollections+MPTidbits.m"; sourceTree = ""; }; 57 | 967555F41689624A008F6B69 /* NSColor+CAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSColor+CAdditions.h"; sourceTree = ""; }; 58 | 967555F51689624A008F6B69 /* NSColor+CAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSColor+CAdditions.m"; sourceTree = ""; }; 59 | 967555F61689624A008F6B69 /* NSString+MPTidbits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+MPTidbits.h"; sourceTree = ""; }; 60 | 967555F71689624A008F6B69 /* NSString+MPTidbits.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+MPTidbits.m"; sourceTree = ""; }; 61 | 967555FF16896256008F6B69 /* Colors.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Colors.icns; sourceTree = ""; }; 62 | 9675560016896256008F6B69 /* DefaultPatterns.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = DefaultPatterns.plist; sourceTree = ""; }; 63 | 9675560216896256008F6B69 /* English */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; 64 | 9675560416896256008F6B69 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/MainMenu.nib; sourceTree = ""; }; 65 | 9675560816896256008F6B69 /* hud-prefs.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "hud-prefs.png"; sourceTree = ""; }; 66 | 9675560916896256008F6B69 /* hud-prefs@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "hud-prefs@2x.png"; sourceTree = ""; }; 67 | 9675560B16896256008F6B69 /* magnifier.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = magnifier.png; sourceTree = ""; }; 68 | 9675560C16896256008F6B69 /* magnifier@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "magnifier@2x.png"; sourceTree = ""; }; 69 | 9675561816896266008F6B69 /* BGHUDAppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BGHUDAppKit.framework; path = Frameworks/BGHUDAppKit.framework; sourceTree = ""; }; 70 | 9675561916896266008F6B69 /* BWToolkitFramework.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BWToolkitFramework.framework; path = Frameworks/BWToolkitFramework.framework; sourceTree = ""; }; 71 | 9675561C16896295008F6B69 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; }; 72 | 9675561E168962AB008F6B69 /* Colors_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Colors_Prefix.pch; sourceTree = ""; }; 73 | 9675561F168962AB008F6B69 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | 8D11072E0486CEB800E47090 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */, 82 | 9675561A16896266008F6B69 /* BGHUDAppKit.framework in Frameworks */, 83 | 9675561B16896266008F6B69 /* BWToolkitFramework.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | /* End PBXFrameworksBuildPhase section */ 88 | 89 | /* Begin PBXGroup section */ 90 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9675561816896266008F6B69 /* BGHUDAppKit.framework */, 94 | 9675561916896266008F6B69 /* BWToolkitFramework.framework */, 95 | 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */, 96 | ); 97 | name = "Linked Frameworks"; 98 | sourceTree = ""; 99 | }; 100 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 29B97324FDCFA39411CA2CEA /* AppKit.framework */, 104 | 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */, 105 | 29B97325FDCFA39411CA2CEA /* Foundation.framework */, 106 | ); 107 | name = "Other Frameworks"; 108 | sourceTree = ""; 109 | }; 110 | 19C28FACFE9D520D11CA2CBB /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 8D1107320486CEB800E47090 /* Colors.app */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 29B97314FDCFA39411CA2CEA /* Colors */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 9675561E168962AB008F6B69 /* Colors_Prefix.pch */, 122 | 9675561F168962AB008F6B69 /* main.m */, 123 | 967555FE16896256008F6B69 /* Resources */, 124 | 967555EA1689624A008F6B69 /* Classes */, 125 | 29B97323FDCFA39411CA2CEA /* Frameworks */, 126 | 19C28FACFE9D520D11CA2CBB /* Products */, 127 | ); 128 | name = Colors; 129 | sourceTree = ""; 130 | }; 131 | 29B97323FDCFA39411CA2CEA /* Frameworks */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */, 135 | 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */, 136 | ); 137 | name = Frameworks; 138 | sourceTree = ""; 139 | }; 140 | 967555EA1689624A008F6B69 /* Classes */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 967555EB1689624A008F6B69 /* CController.h */, 144 | 967555EC1689624A008F6B69 /* CController.m */, 145 | 967555ED1689624A008F6B69 /* Colors_Prefix.pch */, 146 | 967555EE1689624A008F6B69 /* CPatternController.h */, 147 | 967555EF1689624A008F6B69 /* CPatternController.m */, 148 | 967555F01689624A008F6B69 /* main.m */, 149 | 967555F11689624A008F6B69 /* MPTidbits.h */, 150 | 967555F21689624A008F6B69 /* NSCollections+MPTidbits.h */, 151 | 967555F31689624A008F6B69 /* NSCollections+MPTidbits.m */, 152 | 967555F41689624A008F6B69 /* NSColor+CAdditions.h */, 153 | 967555F51689624A008F6B69 /* NSColor+CAdditions.m */, 154 | 967555F61689624A008F6B69 /* NSString+MPTidbits.h */, 155 | 967555F71689624A008F6B69 /* NSString+MPTidbits.m */, 156 | ); 157 | path = Classes; 158 | sourceTree = ""; 159 | }; 160 | 967555FE16896256008F6B69 /* Resources */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 9675561C16896295008F6B69 /* Info.plist */, 164 | 967555FF16896256008F6B69 /* Colors.icns */, 165 | 9675560016896256008F6B69 /* DefaultPatterns.plist */, 166 | 9675560116896256008F6B69 /* InfoPlist.strings */, 167 | 9675560316896256008F6B69 /* MainMenu.nib */, 168 | 9675560816896256008F6B69 /* hud-prefs.png */, 169 | 9675560916896256008F6B69 /* hud-prefs@2x.png */, 170 | 9675560B16896256008F6B69 /* magnifier.png */, 171 | 9675560C16896256008F6B69 /* magnifier@2x.png */, 172 | ); 173 | path = Resources; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXNativeTarget section */ 179 | 8D1107260486CEB800E47090 /* Colors */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Colors" */; 182 | buildPhases = ( 183 | 8D1107290486CEB800E47090 /* Resources */, 184 | 8D11072C0486CEB800E47090 /* Sources */, 185 | 8D11072E0486CEB800E47090 /* Frameworks */, 186 | C9EAF90110139E3F00A92931 /* CopyFiles */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = Colors; 193 | productInstallPath = "$(HOME)/Applications"; 194 | productName = Colors; 195 | productReference = 8D1107320486CEB800E47090 /* Colors.app */; 196 | productType = "com.apple.product-type.application"; 197 | }; 198 | /* End PBXNativeTarget section */ 199 | 200 | /* Begin PBXProject section */ 201 | 29B97313FDCFA39411CA2CEA /* Project object */ = { 202 | isa = PBXProject; 203 | buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Colors" */; 204 | compatibilityVersion = "Xcode 3.1"; 205 | developmentRegion = English; 206 | hasScannedForEncodings = 1; 207 | knownRegions = ( 208 | en, 209 | English, 210 | ); 211 | mainGroup = 29B97314FDCFA39411CA2CEA /* Colors */; 212 | projectDirPath = ""; 213 | projectRoot = ""; 214 | targets = ( 215 | 8D1107260486CEB800E47090 /* Colors */, 216 | ); 217 | }; 218 | /* End PBXProject section */ 219 | 220 | /* Begin PBXResourcesBuildPhase section */ 221 | 8D1107290486CEB800E47090 /* Resources */ = { 222 | isa = PBXResourcesBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | 9675560D16896256008F6B69 /* Colors.icns in Resources */, 226 | 9675560E16896256008F6B69 /* DefaultPatterns.plist in Resources */, 227 | 9675560F16896256008F6B69 /* InfoPlist.strings in Resources */, 228 | 9675561016896256008F6B69 /* MainMenu.nib in Resources */, 229 | 9675561316896256008F6B69 /* hud-prefs.png in Resources */, 230 | 9675561416896256008F6B69 /* hud-prefs@2x.png in Resources */, 231 | 9675561616896256008F6B69 /* magnifier.png in Resources */, 232 | 9675561716896256008F6B69 /* magnifier@2x.png in Resources */, 233 | 9675561D16896295008F6B69 /* Info.plist in Resources */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | /* End PBXResourcesBuildPhase section */ 238 | 239 | /* Begin PBXSourcesBuildPhase section */ 240 | 8D11072C0486CEB800E47090 /* Sources */ = { 241 | isa = PBXSourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | 967555F81689624A008F6B69 /* CController.m in Sources */, 245 | 967555F91689624A008F6B69 /* CPatternController.m in Sources */, 246 | 967555FB1689624A008F6B69 /* NSCollections+MPTidbits.m in Sources */, 247 | 967555FC1689624A008F6B69 /* NSColor+CAdditions.m in Sources */, 248 | 967555FD1689624A008F6B69 /* NSString+MPTidbits.m in Sources */, 249 | 96755620168962AB008F6B69 /* main.m in Sources */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | /* End PBXSourcesBuildPhase section */ 254 | 255 | /* Begin PBXVariantGroup section */ 256 | 9675560116896256008F6B69 /* InfoPlist.strings */ = { 257 | isa = PBXVariantGroup; 258 | children = ( 259 | 9675560216896256008F6B69 /* English */, 260 | ); 261 | name = InfoPlist.strings; 262 | sourceTree = ""; 263 | }; 264 | 9675560316896256008F6B69 /* MainMenu.nib */ = { 265 | isa = PBXVariantGroup; 266 | children = ( 267 | 9675560416896256008F6B69 /* English */, 268 | ); 269 | name = MainMenu.nib; 270 | sourceTree = ""; 271 | }; 272 | /* End PBXVariantGroup section */ 273 | 274 | /* Begin XCBuildConfiguration section */ 275 | C01FCF4B08A954540054247B /* Debug */ = { 276 | isa = XCBuildConfiguration; 277 | buildSettings = { 278 | ALWAYS_SEARCH_USER_PATHS = NO; 279 | COPY_PHASE_STRIP = NO; 280 | FRAMEWORK_SEARCH_PATHS = ( 281 | "$(inherited)", 282 | "\"$(SRCROOT)\"", 283 | "\"$(SRCROOT)/Frameworks\"", 284 | ); 285 | GCC_DYNAMIC_NO_PIC = NO; 286 | GCC_ENABLE_FIX_AND_CONTINUE = YES; 287 | GCC_MODEL_TUNING = G5; 288 | GCC_OPTIMIZATION_LEVEL = 0; 289 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 290 | GCC_PREFIX_HEADER = Colors_Prefix.pch; 291 | INFOPLIST_FILE = Info.plist; 292 | INSTALL_PATH = "$(HOME)/Applications"; 293 | MACOSX_DEPLOYMENT_TARGET = 10.8; 294 | PRODUCT_NAME = Colors; 295 | SDKROOT = ""; 296 | }; 297 | name = Debug; 298 | }; 299 | C01FCF4C08A954540054247B /* Release */ = { 300 | isa = XCBuildConfiguration; 301 | buildSettings = { 302 | ALWAYS_SEARCH_USER_PATHS = NO; 303 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 304 | FRAMEWORK_SEARCH_PATHS = ( 305 | "$(inherited)", 306 | "\"$(SRCROOT)\"", 307 | "\"$(SRCROOT)/Frameworks\"", 308 | ); 309 | GCC_MODEL_TUNING = G5; 310 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 311 | GCC_PREFIX_HEADER = Colors_Prefix.pch; 312 | INFOPLIST_FILE = Info.plist; 313 | INSTALL_PATH = "$(HOME)/Applications"; 314 | MACOSX_DEPLOYMENT_TARGET = 10.8; 315 | PRODUCT_NAME = Colors; 316 | SDKROOT = ""; 317 | }; 318 | name = Release; 319 | }; 320 | C01FCF4F08A954540054247B /* Debug */ = { 321 | isa = XCBuildConfiguration; 322 | buildSettings = { 323 | ALWAYS_SEARCH_USER_PATHS = NO; 324 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 325 | GCC_OPTIMIZATION_LEVEL = 0; 326 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 327 | GCC_WARN_UNUSED_VARIABLE = YES; 328 | ONLY_ACTIVE_ARCH = YES; 329 | PREBINDING = NO; 330 | SDKROOT = macosx10.5; 331 | }; 332 | name = Debug; 333 | }; 334 | C01FCF5008A954540054247B /* Release */ = { 335 | isa = XCBuildConfiguration; 336 | buildSettings = { 337 | ALWAYS_SEARCH_USER_PATHS = NO; 338 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; 339 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 340 | GCC_WARN_UNUSED_VARIABLE = YES; 341 | PREBINDING = NO; 342 | SDKROOT = macosx10.5; 343 | }; 344 | name = Release; 345 | }; 346 | /* End XCBuildConfiguration section */ 347 | 348 | /* Begin XCConfigurationList section */ 349 | C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "Colors" */ = { 350 | isa = XCConfigurationList; 351 | buildConfigurations = ( 352 | C01FCF4B08A954540054247B /* Debug */, 353 | C01FCF4C08A954540054247B /* Release */, 354 | ); 355 | defaultConfigurationIsVisible = 0; 356 | defaultConfigurationName = Release; 357 | }; 358 | C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Colors" */ = { 359 | isa = XCConfigurationList; 360 | buildConfigurations = ( 361 | C01FCF4F08A954540054247B /* Debug */, 362 | C01FCF5008A954540054247B /* Release */, 363 | ); 364 | defaultConfigurationIsVisible = 0; 365 | defaultConfigurationName = Release; 366 | }; 367 | /* End XCConfigurationList section */ 368 | }; 369 | rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; 370 | } 371 | --------------------------------------------------------------------------------