Deprecated NSAttributedString AppKit Additions Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.5

textFileTypes

Returns an array of strings representing those file types that can be loaded as text. (Deprecated in OS X v10.5. Use textTypes instead.)

+ (NSArray *)textFileTypes
Return Value

An array of NSString objects, containing file extensions and HFS file types. By default, the list returned by this method includes “txt”, “rtf”, “rtfd”, and “html”.

Discussion

This list includes all file types supported by text classes, plus those types that can be converted to supported file types through a user-installed filter service. The array returned by this method may be passed directly to NSOpenPanel method runModalForTypes:.

When creating a subclass of NSAttributedString that accepts text data from non-default file types, override textUnfilteredFileTypes to notify NSAttributedString of the file types your class supports.

Availability
  • Available in OS X v10.1 and later.
  • Deprecated in OS X v10.5.
Declared In
NSAttributedString.h

textPasteboardTypes

Returns an array of pasteboard types that can be loaded as text. (Deprecated in OS X v10.5. Use textTypes instead.)

+ (NSArray *)textPasteboardTypes
Return Value

An array of NSString objects, containing the pasteboard types supported by text classes and those that can be converted to supported pasteboard types through a user-installed filter service.

Discussion

By default, the list returned by this method includes NSHTMLPboardType, NSRTFPboardType, NSRTFDPboardType, and NSStringPboardType.

When creating a subclass of NSAttributedString that accepts text data from non-default pasteboard types, override textUnfilteredPasteboardTypes to notify NSAttributedString of the pasteboard types your class supports.

Availability
  • Available in OS X v10.1 and later.
  • Deprecated in OS X v10.5.
Declared In
NSAttributedString.h

textUnfilteredFileTypes

Returns an array of strings representing those file types that can be loaded as a text. (Deprecated in OS X v10.5. Use textUnfilteredTypes instead.)

+ (NSArray *)textUnfilteredFileTypes
Return Value

An array of NSString objects, consisting of all file types supported by text classes, but does not include those types that can be converted to supported file types through a user-installed filter service.

Discussion

This list consists of all file types supported by text classes, but does not include those types that can be converted to supported file types through a user-installed filter service. The array returned by this method may be passed directly to NSOpenPanel method runModalForTypes:.

Availability
  • Available in OS X v10.1 and later.
  • Deprecated in OS X v10.5.
Declared In
NSAttributedString.h

textUnfilteredPasteboardTypes

Returns an array of pasteboard types that can be loaded as text. (Deprecated in OS X v10.5. Use textUnfilteredTypes instead.)

+ (NSArray *)textUnfilteredPasteboardTypes
Return Value

An array of NSString objects, pasteboard types supported by text classes.

Discussion

This list consists of all pasteboard types supported by text classes, but does not include those that can be converted to supported pasteboard types through a user-installed filter service.

Availability
  • Available in OS X v10.1 and later.
  • Deprecated in OS X v10.5.
Declared In
NSAttributedString.h