A medallion view for OS X (like the login image view introduced in Lion).
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CDMedallionView.xcodeproj
CDMedallionView
Medallion Test App
xcconfigs @ 83f53f7
.gitignore
.gitmodules
CDMedallionView.podspec
LICENSE
README.md

README.md

CDMedallionView

A medallion view for OS X, like the login image view introduced in OS X Lion.

Supports retina displays.

The medallion view in three different sizes

Getting started

  • Get the source;
    • as a git submodule:
      1. git submodule add https://github.com/rastersize/CDMedallionView.git Vendor/CDMedallionView
      2. git submodule update --init --recursive
    • or by download the source as a zip and extracting it in your vendor directory.
  • Add the the source files (CDMedallionView.{h,m}) to your Xcode project.
    • Make sure they are compiled using ARC.
  • Use the class as if it was a normal NSImageView and configure the stuff you need such as border width, color and whether a shine should be added.

Requirements

CDMedallionView requires ARC.

If you do not use it and want to compile the source files yourself just add -fobjc-arc to the compiler flags of the CDMedallionView.m file. You can also just link against the framework in which case everything should work out of the box.

Credits

CDMedallionView was created by Aron Cedercrantz.

License

CDMedallionView is licensed under the MIT license. For the specifics see the license file.