JNWLabel 1.0

JNWLabel 1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Jonathan Willing.




  • By
  • Jonathan Willing

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.