Trait NSAttributedStringNSDeprecatedKitAdditions

Source
pub unsafe trait NSAttributedStringNSDeprecatedKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn containsAttachments(&self) -> bool { ... }
    unsafe fn textFileTypes() -> Retained<NSArray> { ... }
    unsafe fn textPasteboardTypes() -> Retained<NSArray> { ... }
    unsafe fn textUnfilteredFileTypes() -> Retained<NSArray> { ... }
    unsafe fn textUnfilteredPasteboardTypes() -> Retained<NSArray> { ... }
    unsafe fn initWithURL_documentAttributes(
        this: Allocated<Self>,
        url: &NSURL,
        dict: Option<&mut Option<Retained<NSDictionary>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn initWithPath_documentAttributes(
        this: Allocated<Self>,
        path: &NSString,
        dict: Option<&mut Option<Retained<NSDictionary>>>,
    ) -> Option<Retained<Self>> { ... }
    unsafe fn URLAtIndex_effectiveRange(
        &self,
        location: NSUInteger,
        effective_range: NSRangePointer,
    ) -> Option<Retained<NSURL>> { ... }
}
Available on crate feature NSAttributedString only.
Expand description

Category “NSDeprecatedKitAdditions” on NSAttributedString.

Provided Methods§

Source

unsafe fn containsAttachments(&self) -> bool

Source

unsafe fn textFileTypes() -> Retained<NSArray>

👎Deprecated
Source

unsafe fn textPasteboardTypes() -> Retained<NSArray>

👎Deprecated
Source

unsafe fn textUnfilteredFileTypes() -> Retained<NSArray>

👎Deprecated
Source

unsafe fn textUnfilteredPasteboardTypes() -> Retained<NSArray>

👎Deprecated
Source

unsafe fn initWithURL_documentAttributes( this: Allocated<Self>, url: &NSURL, dict: Option<&mut Option<Retained<NSDictionary>>>, ) -> Option<Retained<Self>>

👎Deprecated: Use -initWithURL:options:documentAttributes:error: instead
Source

unsafe fn initWithPath_documentAttributes( this: Allocated<Self>, path: &NSString, dict: Option<&mut Option<Retained<NSDictionary>>>, ) -> Option<Retained<Self>>

👎Deprecated: Use -initWithURL:options:documentAttributes:error: instead
Source

unsafe fn URLAtIndex_effectiveRange( &self, location: NSUInteger, effective_range: NSRangePointer, ) -> Option<Retained<NSURL>>

👎Deprecated: Use NSDataDetector instead

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSAttributedStringNSDeprecatedKitAdditions for NSAttributedString

Implementors§