You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to access descriptorType at NSAppleEventDescriptor in order to understand the type of the descriptor, but couldn't find the corresponding field in the generated icrate package. Is there a way to access that field for me?
The text was updated successfully, but these errors were encountered:
The reason it's not present is that the type of that field is DescType, which comes from the CoreServices framework, which is not yet mapped.
You can do the following in the meantime. Depending on your needs, you might have to pull in the core-services crate too.
use icrate::Foundation::NSAppleEventDescriptor;use objc2::msg_send;use core_services::DescType;// If using `core-services`typeDescType = u32;// If not using `core-services`pubfnget_descriptor_type(desc:&NSAppleEventDescriptor) -> DescType{unsafe{msg_send![desc, descriptorType]}}
Hello!
I wanted to access
descriptorType
atNSAppleEventDescriptor
in order to understand the type of the descriptor, but couldn't find the corresponding field in the generatedicrate
package. Is there a way to access that field for me?The text was updated successfully, but these errors were encountered: