Trait objc2_web_kit::NSObjectWebScripting

source ·
pub unsafe trait NSObjectWebScripting: ClassType {
    // Provided methods
    unsafe fn webScriptNameForSelector(
        selector: Option<Sel>
    ) -> Option<Id<NSString>>
       where Self: Sized + ClassType { ... }
    unsafe fn isSelectorExcludedFromWebScript(selector: Option<Sel>) -> bool
       where Self: Sized + ClassType { ... }
    unsafe fn webScriptNameForKey(name: *mut c_char) -> Option<Id<NSString>>
       where Self: Sized + ClassType { ... }
    unsafe fn isKeyExcludedFromWebScript(name: *mut c_char) -> bool
       where Self: Sized + ClassType { ... }
    unsafe fn invokeUndefinedMethodFromWebScript_withArguments(
        &self,
        name: Option<&NSString>,
        arguments: Option<&NSArray>
    ) -> Option<Id<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn invokeDefaultMethodWithArguments(
        &self,
        arguments: Option<&NSArray>
    ) -> Option<Id<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn finalizeForWebScript(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature WebScriptObject only.
Expand description

Category “WebScripting” on NSObject.

Provided Methods§

source

unsafe fn webScriptNameForSelector( selector: Option<Sel> ) -> Option<Id<NSString>>
where Self: Sized + ClassType,

source

unsafe fn isSelectorExcludedFromWebScript(selector: Option<Sel>) -> bool
where Self: Sized + ClassType,

source

unsafe fn webScriptNameForKey(name: *mut c_char) -> Option<Id<NSString>>
where Self: Sized + ClassType,

source

unsafe fn isKeyExcludedFromWebScript(name: *mut c_char) -> bool
where Self: Sized + ClassType,

source

unsafe fn invokeUndefinedMethodFromWebScript_withArguments( &self, name: Option<&NSString>, arguments: Option<&NSArray> ) -> Option<Id<AnyObject>>
where Self: Sized + Message,

source

unsafe fn invokeDefaultMethodWithArguments( &self, arguments: Option<&NSArray> ) -> Option<Id<AnyObject>>
where Self: Sized + Message,

source

unsafe fn finalizeForWebScript(&self)
where Self: Sized + Message,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NSObjectWebScripting for NSObject

Implementors§