< Previous PageNext Page > Hide TOC

Deprecated NSAttributedString Application Kit Additions Methods

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

Deprecated in Mac OS X v10.5

textFileTypes

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

+ (NSArray *)textFileTypes

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:.

File types are identified by extension and HFS file types. By default, the list returned by this method includes “txt”, “rtf”, “rtfd”, and “html”.

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

Availability
See Also
Declared In
NSAttributedString.h

textPasteboardTypes

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

+ (NSArray *)textPasteboardTypes

Discussion

This list includes all pasteboard types supported by text classes and those that can be converted to supported pasteboard types through a user-installed filter service.

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 nondefault pasteboard types, override textUnfilteredPasteboardTypes to notify NSAttributedString of the pasteboard types your class supports.

Availability
See Also
Declared In
NSAttributedString.h

textUnfilteredFileTypes

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

+ (NSArray *)textUnfilteredFileTypes

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
See Also
Declared In
NSAttributedString.h

textUnfilteredPasteboardTypes

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

+ (NSArray *)textUnfilteredPasteboardTypes

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
See Also
Declared In
NSAttributedString.h

< Previous PageNext Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-12-04)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.