AppKit macOS 12.0 Beta 1 to Beta 2 API Differences

NSImage.h
Added NSImage.symbolConfiguration
Added +[NSImageSymbolConfiguration configurationWithHierarchicalColor:]
Added +[NSImageSymbolConfiguration configurationWithPaletteColors:]
Added +[NSImageSymbolConfiguration configurationPreferringMulticolor]
Added -[NSImageSymbolConfiguration configurationByApplyingConfiguration:]
Modified NSImageSymbolConfiguration
Protocols
FromNSCopying
ToNSCopying, NSSecureCoding

Modified +[NSImageSymbolConfiguration configurationWithPointSize:weight:scale:]
Declaration
From+ (NSImageSymbolConfiguration *)configurationWithPointSize:(CGFloat)pointSize weight:(NSFontWeight)weight scale:(NSImageSymbolScale)scale
To+ (instancetype)configurationWithPointSize:(CGFloat)pointSize weight:(NSFontWeight)weight scale:(NSImageSymbolScale)scale

Modified +[NSImageSymbolConfiguration configurationWithPointSize:weight:]
Declaration
From+ (NSImageSymbolConfiguration *)configurationWithPointSize:(CGFloat)pointSize weight:(NSFontWeight)weight
To+ (instancetype)configurationWithPointSize:(CGFloat)pointSize weight:(NSFontWeight)weight

Modified +[NSImageSymbolConfiguration configurationWithTextStyle:scale:]
Declaration
From+ (NSImageSymbolConfiguration *)configurationWithTextStyle:(NSFontTextStyle)style scale:(NSImageSymbolScale)scale
To+ (instancetype)configurationWithTextStyle:(NSFontTextStyle)style scale:(NSImageSymbolScale)scale

Modified +[NSImageSymbolConfiguration configurationWithTextStyle:]
Declaration
From+ (NSImageSymbolConfiguration *)configurationWithTextStyle:(NSFontTextStyle)style
To+ (instancetype)configurationWithTextStyle:(NSFontTextStyle)style

Modified +[NSImageSymbolConfiguration configurationWithScale:]
Declaration
From+ (NSImageSymbolConfiguration *)configurationWithScale:(NSImageSymbolScale)scale
To+ (instancetype)configurationWithScale:(NSImageSymbolScale)scale

NSTextContentManager.h
Removed NSTextElementProviderEnumerationOptions
Removed NSTextElementProviderEnumerationOptionsNone
Removed NSTextElementProviderEnumerationOptionsReverse
Removed -[NSTextElementProvider adjustedRangeFromRange:inEditingTextSelection:]
Removed -[NSTextContentManager performEditingTransactionWithBlock:]
Removed NSTextContentManager.synchronizesTextLayoutManagersAutomatically
Removed NSTextContentManager.synchronizesToBackingStoreAutomatically
Removed -[NSTextContentManagerDelegate textContentManager:shouldEnumerateTextElement:withOptions:]
Added NSTextContentManagerEnumerationOptions
Added NSTextContentManagerEnumerationOptionsNone
Added NSTextContentManagerEnumerationOptionsReverse
Added -[NSTextElementProvider adjustedRangeFromRange:forEditingTextSelection:]
Added -[NSTextContentManager performEditingTransactionUsingBlock:]
Added NSTextContentManager.automaticallySynchronizesTextLayoutManagers
Added NSTextContentManager.automaticallySynchronizesToBackingStore
Added -[NSTextContentManagerDelegate textContentManager:shouldEnumerateTextElement:options:]
Added -[NSTextContentStorage locationFromLocation:withOffset:]
Added -[NSTextContentStorage offsetFromLocation:toLocation:]
Added -[NSTextContentStorage adjustedRangeFromRange:forEditingTextSelection:]
Modified -[NSTextElementProvider enumerateTextElementsFromLocation:options:usingBlock:]
Declaration
From- (id<NSTextLocation>)enumerateTextElementsFromLocation:(id<NSTextLocation>)textLocation options:(NSTextElementProviderEnumerationOptions)options usingBlock:(BOOL (^)(NSTextElement * _Nonnull))block
To- (id<NSTextLocation>)enumerateTextElementsFromLocation:(id<NSTextLocation>)textLocation options:(NSTextContentManagerEnumerationOptions)options usingBlock:(BOOL (^)(NSTextElement * _Nonnull))block

Modified -[NSTextElementProvider locationFromLocation:withOffset:]
Optional
FromRequired
ToOptional

Modified -[NSTextElementProvider offsetFromLocation:toLocation:]
Optional
FromRequired
ToOptional

NSTextElement.h
Modified NSTextParagraph.attributedString
Declaration
From@property (readonly, copy) NSAttributedString *attributedString
To@property (readonly, strong) NSAttributedString *attributedString

NSTextLayoutFragment.h
Added NSTextLayoutFragment.leadingPadding
Added NSTextLayoutFragment.trailingPadding
Added NSTextLayoutFragment.topMargin
Added NSTextLayoutFragment.bottomMargin
NSTextLayoutManager.h
Removed -[NSTextLayoutManagerDelegate textLayoutManager:textContainerForLocation:]
NSTextLineFragment.h
Removed -[NSTextLineFragment characterIndexForPoint:fractionOfDistanceThroughGlyph:]
Added -[NSTextLineFragment characterIndexForPoint:]
Added -[NSTextLineFragment fractionOfDistanceThroughGlyphForPoint:]
Modified NSTextLineFragment.attributedString
Declaration
From@property (readonly, copy) NSAttributedString *attributedString
To@property (readonly, strong) NSAttributedString *attributedString

NSTextSelectionNavigation.h
Removed -[NSTextSelectionNavigation resolvedInsertionPointForTextSelection:writingDirection:]
Removed -[NSTextSelectionDataSource textWritingModeAtLocation:]
Added NSTextSelectionNavigationWritingDirection
Added NSTextSelectionNavigationWritingDirectionLeftToRight
Added NSTextSelectionNavigationWritingDirectionRightToLeft
Added NSTextSelectionNavigationLayoutOrientation
Added NSTextSelectionNavigationLayoutOrientationHorizontal
Added NSTextSelectionNavigationLayoutOrientationVertical
Added -[NSTextSelectionNavigation resolvedInsertionLocationForTextSelection:writingDirection:]
Added -[NSTextSelectionDataSource textLayoutOrientationAtLocation:]
Modified -[NSTextSelectionDataSource baseWritingDirectionAtLocation:]
Declaration
From- (NSWritingDirection)baseWritingDirectionAtLocation:(id<NSTextLocation>)location
To- (NSTextSelectionNavigationWritingDirection)baseWritingDirectionAtLocation:(id<NSTextLocation>)location

NSTextStorage.h
Removed -[NSTextStorageObserving performEditingTransactionForTextStorage:withBlock:]
Added -[NSTextStorageObserving performEditingTransactionForTextStorage:usingBlock:]
NSTextTypes.h
Removed NSTextWritingMode
Removed NSTextWritingModeHorizontal
Removed NSTextWritingModeVertical
Removed NSTextWritingModeProvider
Removed NSTextWritingModeProvider.textWritingMode
NSTextViewportLayoutController.h
Removed -[NSTextViewportLayoutController relocateViewport:]
Removed -[NSTextViewportLayoutController adjustViewport:]
Added -[NSTextViewportLayoutController relocateViewportToTextLocation:]
Added -[NSTextViewportLayoutController adjustViewportByVerticalOffset:]