objc2_foundation/generated/
NSScriptKeyValueCoding.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern "C" {
10 #[cfg(feature = "NSString")]
12 pub static NSOperationNotSupportedForKeyException: &'static NSString;
13}
14
15mod private_NSObjectNSScriptKeyValueCoding {
16 pub trait Sealed {}
17}
18
19#[doc(alias = "NSScriptKeyValueCoding")]
21pub unsafe trait NSObjectNSScriptKeyValueCoding:
22 ClassType + Sized + private_NSObjectNSScriptKeyValueCoding::Sealed
23{
24 extern_methods!(
25 #[cfg(feature = "NSString")]
26 #[unsafe(method(valueAtIndex:inPropertyWithKey:))]
27 #[unsafe(method_family = none)]
28 unsafe fn valueAtIndex_inPropertyWithKey(
29 &self,
30 index: NSUInteger,
31 key: &NSString,
32 ) -> Option<Retained<AnyObject>>;
33
34 #[cfg(feature = "NSString")]
35 #[unsafe(method(valueWithName:inPropertyWithKey:))]
36 #[unsafe(method_family = none)]
37 unsafe fn valueWithName_inPropertyWithKey(
38 &self,
39 name: &NSString,
40 key: &NSString,
41 ) -> Option<Retained<AnyObject>>;
42
43 #[cfg(feature = "NSString")]
44 #[unsafe(method(valueWithUniqueID:inPropertyWithKey:))]
45 #[unsafe(method_family = none)]
46 unsafe fn valueWithUniqueID_inPropertyWithKey(
47 &self,
48 unique_id: &AnyObject,
49 key: &NSString,
50 ) -> Option<Retained<AnyObject>>;
51
52 #[cfg(feature = "NSString")]
53 #[unsafe(method(insertValue:atIndex:inPropertyWithKey:))]
54 #[unsafe(method_family = none)]
55 unsafe fn insertValue_atIndex_inPropertyWithKey(
56 &self,
57 value: &AnyObject,
58 index: NSUInteger,
59 key: &NSString,
60 );
61
62 #[cfg(feature = "NSString")]
63 #[unsafe(method(removeValueAtIndex:fromPropertyWithKey:))]
64 #[unsafe(method_family = none)]
65 unsafe fn removeValueAtIndex_fromPropertyWithKey(&self, index: NSUInteger, key: &NSString);
66
67 #[cfg(feature = "NSString")]
68 #[unsafe(method(replaceValueAtIndex:inPropertyWithKey:withValue:))]
69 #[unsafe(method_family = none)]
70 unsafe fn replaceValueAtIndex_inPropertyWithKey_withValue(
71 &self,
72 index: NSUInteger,
73 key: &NSString,
74 value: &AnyObject,
75 );
76
77 #[cfg(feature = "NSString")]
78 #[unsafe(method(insertValue:inPropertyWithKey:))]
79 #[unsafe(method_family = none)]
80 unsafe fn insertValue_inPropertyWithKey(&self, value: &AnyObject, key: &NSString);
81
82 #[cfg(feature = "NSString")]
83 #[unsafe(method(coerceValue:forKey:))]
84 #[unsafe(method_family = none)]
85 unsafe fn coerceValue_forKey(
86 &self,
87 value: Option<&AnyObject>,
88 key: &NSString,
89 ) -> Option<Retained<AnyObject>>;
90 );
91}
92
93impl private_NSObjectNSScriptKeyValueCoding::Sealed for NSObject {}
94unsafe impl NSObjectNSScriptKeyValueCoding for NSObject {}