NSObjectNSDelayedPerforming

Trait NSObjectNSDelayedPerforming 

Source
pub unsafe trait NSObjectNSDelayedPerforming:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn performSelector_withObject_afterDelay_inModes(
        &self,
        a_selector: Sel,
        an_argument: Option<&AnyObject>,
        delay: NSTimeInterval,
        modes: &NSArray<NSRunLoopMode>,
    ) { ... }
    unsafe fn performSelector_withObject_afterDelay(
        &self,
        a_selector: Sel,
        an_argument: Option<&AnyObject>,
        delay: NSTimeInterval,
    ) { ... }
    unsafe fn cancelPreviousPerformRequestsWithTarget_selector_object(
        a_target: &AnyObject,
        a_selector: Sel,
        an_argument: Option<&AnyObject>,
    ) { ... }
    unsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject) { ... }
}
Available on crate feature NSRunLoop only.
Expand description

Category “NSDelayedPerforming” on NSObject.

************** Delayed perform *****************

Provided Methods§

Source

unsafe fn performSelector_withObject_afterDelay_inModes( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, modes: &NSArray<NSRunLoopMode>, )

Available on crate features NSArray and NSDate and NSObjCRuntime and NSString only.
§Safety
  • a_selector must be a valid selector.
  • an_argument should be of the correct type.
Source

unsafe fn performSelector_withObject_afterDelay( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, )

Available on crate feature NSDate only.
§Safety
  • a_selector must be a valid selector.
  • an_argument should be of the correct type.
Source

unsafe fn cancelPreviousPerformRequestsWithTarget_selector_object( a_target: &AnyObject, a_selector: Sel, an_argument: Option<&AnyObject>, )

§Safety
  • a_target should be of the correct type.
  • a_selector must be a valid selector.
  • an_argument should be of the correct type.
Source

unsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject)

§Safety

a_target should be of the correct type.

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.

Implementors§