Mac Developer Library


AppKit Framework Reference NSTextLayoutOrientationProvider Protocol Reference

Deployment Target:

On This Page


This protocol defines the default value for the range of string laid out in the receiver in absence of explicit NSVerticalGlyphFormAttributeName attribute. There are two Application Kit classes implementing this interface: NSTextContainer and NSTextView. The NSTextContainer implementation just returns the value from its text view if non-nil; otherwise, returns NSLayoutOrientationHorizontal. For working with non-NSTextView views, the NSTextContainer implementation can be overridden in order to support the custom layout orientation logic.