Skip to content

KarlZeo/NSLabel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSLabel

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.

Requirements

ObjC 2.0 and Automatic Reference Counting (ARC) are mandatory.

This project has only been tested with Xcode 6. It's unknown if this works with older versions.

Dependencies

There are no dependencies other than the Cocoa framework.

Usage

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.

License

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

About

A lightweight and pixel perfect, but simplified version of UILabel for Mac OS X.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 94.1%
  • Ruby 5.9%