Latest 0.0.1
Homepage https://github.com/Megatron1000/MKBOSXCloseButton
License MIT
Platforms osx 10.8, requires ARC
Authors

About

An NSButton subclass that looks just like the Yosemite+ native window close button, including the hover and press states. Made entirely programatically.

alt text

Installation

Installation can be done via cocoapods.

pod 'MKBOSXCloseButton'

Usage

To use, drag a new button onto your view in IB (‘Square’ style seems to work best). Make it a subclass of MKBCloseButton. Untick ‘Bordered’ and tick ‘Transparent’ in the inspector.

Latest podspec

{
    "name": "MKBOSXCloseButton",
    "version": "0.0.1",
    "summary": "An NSButton subclass that looks just like the Yosemite+ native window close button",
    "homepage": "https://github.com/Megatron1000/MKBOSXCloseButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mark Bridges": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Megatron1000/MKBOSXCloseButton.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "osx": "10.8"
    },
    "source_files": "MKBOSXCloseButton/MKBCloseButton.{h,m}",
    "requires_arc": true,
    "screenshots": "https://mark-bridges.com.s3.amazonaws.com/MKBOSXCloseButtonImage.png",
    "social_media_url": "https://twitter.com/markbridgesapps"
}

Pin It on Pinterest

Share This