Skip to content
Light-weight CATextLayer wrapper for OS X.
Objective-C Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
JNWLabelDemo
.gitignore
JNWLabel+Accessibility.h
JNWLabel+Accessibility.m
JNWLabel.h
JNWLabel.m
JNWLabel.podspec
LICENSE.md
README.md

README.md

JNWLabel

JNWLabel is a light-weight wrapper around CATextLayer that provides an alternative to NSTextField, with support for accessibility.

Getting Started

JNWLabel behaves similarly to UILabel.

Interface Builder

Although JNWLabel can be used in Interface Builder, it must be placed as a custom NSView, meaning text and other properties must be modified in code.

Example

JNWLabel *label = [[JNWLabel alloc] initWithFrame:someRect];
label.font = [NSFont systemFontOfSize:14];
label.text = @"Hello World!";

For a better idea of what you can do, please check the example project.

Documentation

Full documentation is provided in the header file (JNWLabel.h).

Accessibility

JNWLabel by default includes support for accessibility.

License

JNWLabel is licensed under the MIT license. See LICENSE.md.

Get In Touch

You can follow me on Twitter as @willing, email me at the email listed on my GitHub profile, or read my blog at jwilling.com.

Something went wrong with that request. Please try again.