NSAttributedStringNSDeprecatedKitAdditions

Trait NSAttributedStringNSDeprecatedKitAdditions 

Source
pub unsafe trait NSAttributedStringNSDeprecatedKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    fn containsAttachments(&self) -> bool { ... }
    fn textFileTypes() -> Retained<NSArray> { ... }
    fn textPasteboardTypes() -> Retained<NSArray> { ... }
    fn textUnfilteredFileTypes() -> Retained<NSArray> { ... }
    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

fn containsAttachments(&self) -> bool

Source

fn textFileTypes() -> Retained<NSArray>

👎Deprecated
Source

fn textPasteboardTypes() -> Retained<NSArray>

👎Deprecated
Source

fn textUnfilteredFileTypes() -> Retained<NSArray>

👎Deprecated
Source

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
§Safety

dict generic should be of the correct type.

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
§Safety

dict generic should be of the correct type.

Source

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

👎Deprecated: Use NSDataDetector instead
§Safety

effective_range must be a valid pointer.

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§