Latest 1.1.0
License MIT
Platforms osx 10.7, requires ARC

This project aims at replicating the most important features of the famous UILabel on Mac OS X.

It’s biggest advantage compared to NSTextField is a more lightweight memory and CPU footprint and a near pixel perfect rendering. I.e. the intrinsicContentSize matches the actual frame of the text and the baselineOffsetFromBottom is correctly computed and can be used with Auto Layout.


  • macOS 10.7 or newer
  • Xcode 6 or newer


There are no dependencies other than the AppKit framework.


Simply include NSLabel.h/.m in your project and use it like the UILabel class.
BUT remember that not all features are supported.
See the Header file for more information about which properties currently are.


This project is licensed under the MIT license.
See the LICENSE file for more information.

Latest podspec

    "name": "NSLabel",
    "version": "1.1.0",
    "summary": "A lightweight and pixel perfect, but simplified version of UILabel for Mac OS X.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Leonard Hecker": "[email protected]"
    "platforms": {
        "osx": "10.7"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "source_files": "*.{h,m}",
    "public_header_files": "*.h",
    "requires_arc": true

Pin It on Pinterest

Share This