objc2_foundation/generated/
NSUserDefaults.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern "C" {
10    /// NSGlobalDomain identifies a domain shared between all applications for a given user. NSGlobalDomain is automatically included in all search lists, after the entries for the search list's domain.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsglobaldomain?language=objc)
13    #[cfg(feature = "NSString")]
14    pub static NSGlobalDomain: &'static NSString;
15}
16
17extern "C" {
18    /// NSArgumentDomain identifies a search list entry containing the commandline arguments the application was launched with, if any. Arguments must be formatted as '-key plistvalue'. NSArgumentDomain is automatically included in all search lists, after forced defaults, but before all other entries. This can be useful for testing purposes.
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsargumentdomain?language=objc)
21    #[cfg(feature = "NSString")]
22    pub static NSArgumentDomain: &'static NSString;
23}
24
25extern "C" {
26    /// NSRegistrationDomain identifies a search list entry containing all defaults set with -registerDefaults:, if any. NSRegistrationDomain is automatically included as the final entry of all search lists.
27    ///
28    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsregistrationdomain?language=objc)
29    #[cfg(feature = "NSString")]
30    pub static NSRegistrationDomain: &'static NSString;
31}
32
33extern_class!(
34    /// NSUserDefaults is a hierarchical persistent interprocess (optionally distributed) key-value store, optimized for storing user settings.
35    ///
36    /// Hierarchical: NSUserDefaults has a list of places to look for data called the "search list". A search list is referred to by an arbitrary string called the "suite identifier" or "domain identifier". When queried, NSUserDefaults checks each entry of its search list until it finds one that contains the key in question, or has searched the whole list. The list is (note: "current host + current user" preferences are unimplemented on iOS, watchOS, and tvOS, and "any user" preferences are not generally useful for applications on those operating systems):
37    /// - Managed ("forced") preferences, set by a configuration profile or via mcx from a network administrator
38    /// - Commandline arguments
39    /// - Preferences for the current domain, in the cloud
40    /// - Preferences for the current domain, the current user, in the current host
41    /// - Preferences for the current domain, the current user, in any host
42    /// - Preferences added via -addSuiteNamed:
43    /// - Preferences global to all apps for the current user, in the current host
44    /// - Preferences global to all apps for the current user, in any host
45    /// - Preferences for the current domain, for all users, in the current host
46    /// - Preferences global to all apps for all users, in the current host
47    /// - Preferences registered with -registerDefaults:
48    ///
49    /// Persistent: Preferences stored in NSUserDefaults persist across reboots and relaunches of apps unless otherwise specified.
50    ///
51    /// Interprocess: Preferences may be accessible to and modified from multiple processes simultaneously (for example between an application and an extension).
52    ///
53    /// Optionally distributed (Currently only supported in Shared iPad for Students mode):  Data stored in user defaults can be made "ubiqitous", i.e. synchronized between devices via the cloud.  Ubiquitous user defaults are automatically propagated to all devices logged into the same iCloud account. When reading defaults (via -*ForKey: methods on NSUserDefaults), ubiquitous defaults are searched before local defaults. All operations on ubiquitous defaults are asynchronous, so registered defaults may be returned in place of ubiquitous defaults if downloading from iCloud hasn't finished. Ubiquitous defaults are specified in the Defaults Configuration File for an application.
54    ///
55    /// Key-Value Store: NSUserDefaults stores Property List objects (NSString, NSData, NSNumber, NSDate, NSArray, and NSDictionary) identified by NSString keys, similar to an NSMutableDictionary.
56    ///
57    /// Optimized for storing user settings: NSUserDefaults is intended for relatively small amounts of data, queried very frequently, and modified occasionally. Using it in other ways may be slow or use more memory than solutions more suited to those uses.
58    ///
59    /// The 'App' CFPreferences functions in CoreFoundation act on the same search lists that NSUserDefaults does.
60    ///
61    /// NSUserDefaults can be observed using Key-Value Observing for any key stored in it. Using NSKeyValueObservingOptionPrior to observe changes from other processes or devices will behave as though NSKeyValueObservingOptionPrior was not specified.
62    ///
63    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsuserdefaults?language=objc)
64    #[unsafe(super(NSObject))]
65    #[derive(Debug, PartialEq, Eq, Hash)]
66    pub struct NSUserDefaults;
67);
68
69extern_conformance!(
70    unsafe impl NSObjectProtocol for NSUserDefaults {}
71);
72
73impl NSUserDefaults {
74    extern_methods!(
75        /// +standardUserDefaults returns a global instance of NSUserDefaults configured to search the current application's search list.
76        #[unsafe(method(standardUserDefaults))]
77        #[unsafe(method_family = none)]
78        pub fn standardUserDefaults() -> Retained<NSUserDefaults>;
79
80        /// +resetStandardUserDefaults releases the standardUserDefaults and sets it to nil. A new standardUserDefaults will be created the next time it's accessed. The only visible effect this has is that all KVO observers of the previous standardUserDefaults will no longer be observing it.
81        #[unsafe(method(resetStandardUserDefaults))]
82        #[unsafe(method_family = none)]
83        pub fn resetStandardUserDefaults();
84
85        /// -init is equivalent to -initWithSuiteName:nil
86        #[unsafe(method(init))]
87        #[unsafe(method_family = init)]
88        pub fn init(this: Allocated<Self>) -> Retained<Self>;
89
90        #[cfg(feature = "NSString")]
91        /// -initWithSuiteName: initializes an instance of NSUserDefaults that searches the shared preferences search list for the domain 'suitename'. For example, using the identifier of an application group will cause the receiver to search the preferences for that group. Passing the current application's bundle identifier, NSGlobalDomain, or the corresponding CFPreferences constants is an error. Passing nil will search the default search list.
92        #[unsafe(method(initWithSuiteName:))]
93        #[unsafe(method_family = init)]
94        pub fn initWithSuiteName(
95            this: Allocated<Self>,
96            suitename: Option<&NSString>,
97        ) -> Option<Retained<Self>>;
98
99        #[cfg(feature = "NSString")]
100        /// -initWithUser: is equivalent to -init
101        #[deprecated = "Use -init instead"]
102        #[unsafe(method(initWithUser:))]
103        #[unsafe(method_family = init)]
104        pub fn initWithUser(this: Allocated<Self>, username: &NSString) -> Option<Retained<Self>>;
105
106        #[cfg(feature = "NSString")]
107        /// -objectForKey: will search the receiver's search list for a default with the key 'defaultName' and return it. If another process has changed defaults in the search list, NSUserDefaults will automatically update to the latest values. If the key in question has been marked as ubiquitous via a Defaults Configuration File, the latest value may not be immediately available, and the registered value will be returned instead.
108        #[unsafe(method(objectForKey:))]
109        #[unsafe(method_family = none)]
110        pub fn objectForKey(&self, default_name: &NSString) -> Option<Retained<AnyObject>>;
111
112        #[cfg(feature = "NSString")]
113        /// -setObject:forKey: immediately stores a value (or removes the value if nil is passed as the value) for the provided key in the search list entry for the receiver's suite name in the current user and any host, then asynchronously stores the value persistently, where it is made available to other processes.
114        ///
115        /// # Safety
116        ///
117        /// `value` should be of the correct type.
118        #[unsafe(method(setObject:forKey:))]
119        #[unsafe(method_family = none)]
120        pub unsafe fn setObject_forKey(&self, value: Option<&AnyObject>, default_name: &NSString);
121
122        #[cfg(feature = "NSString")]
123        /// -removeObjectForKey: is equivalent to -[... setObject:nil forKey:defaultName]
124        #[unsafe(method(removeObjectForKey:))]
125        #[unsafe(method_family = none)]
126        pub fn removeObjectForKey(&self, default_name: &NSString);
127
128        #[cfg(feature = "NSString")]
129        /// -stringForKey: is equivalent to -objectForKey:, except that it will convert NSNumber values to their NSString representation. If a non-string non-number value is found, nil will be returned.
130        #[unsafe(method(stringForKey:))]
131        #[unsafe(method_family = none)]
132        pub fn stringForKey(&self, default_name: &NSString) -> Option<Retained<NSString>>;
133
134        #[cfg(all(feature = "NSArray", feature = "NSString"))]
135        /// -arrayForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray.
136        #[unsafe(method(arrayForKey:))]
137        #[unsafe(method_family = none)]
138        pub fn arrayForKey(&self, default_name: &NSString) -> Option<Retained<NSArray>>;
139
140        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
141        /// -dictionaryForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSDictionary.
142        #[unsafe(method(dictionaryForKey:))]
143        #[unsafe(method_family = none)]
144        pub fn dictionaryForKey(
145            &self,
146            default_name: &NSString,
147        ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
148
149        #[cfg(all(feature = "NSData", feature = "NSString"))]
150        /// -dataForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSData.
151        #[unsafe(method(dataForKey:))]
152        #[unsafe(method_family = none)]
153        pub fn dataForKey(&self, default_name: &NSString) -> Option<Retained<NSData>>;
154
155        #[cfg(all(feature = "NSArray", feature = "NSString"))]
156        /// -stringForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray
157        /// <NSString
158        /// *>. Note that unlike -stringForKey:, NSNumbers are not converted to NSStrings.
159        #[unsafe(method(stringArrayForKey:))]
160        #[unsafe(method_family = none)]
161        pub fn stringArrayForKey(
162            &self,
163            default_name: &NSString,
164        ) -> Option<Retained<NSArray<NSString>>>;
165
166        #[cfg(feature = "NSString")]
167        /// -integerForKey: is equivalent to -objectForKey:, except that it converts the returned value to an NSInteger. If the value is an NSNumber, the result of -integerValue will be returned. If the value is an NSString, it will be converted to NSInteger if possible. If the value is a boolean, it will be converted to either 1 for YES or 0 for NO. If the value is absent or can't be converted to an integer, 0 will be returned.
168        #[unsafe(method(integerForKey:))]
169        #[unsafe(method_family = none)]
170        pub fn integerForKey(&self, default_name: &NSString) -> NSInteger;
171
172        #[cfg(feature = "NSString")]
173        /// -floatForKey: is similar to -integerForKey:, except that it returns a float, and boolean values will not be converted.
174        #[unsafe(method(floatForKey:))]
175        #[unsafe(method_family = none)]
176        pub fn floatForKey(&self, default_name: &NSString) -> c_float;
177
178        #[cfg(feature = "NSString")]
179        /// -doubleForKey: is similar to -integerForKey:, except that it returns a double, and boolean values will not be converted.
180        #[unsafe(method(doubleForKey:))]
181        #[unsafe(method_family = none)]
182        pub fn doubleForKey(&self, default_name: &NSString) -> c_double;
183
184        #[cfg(feature = "NSString")]
185        /// -boolForKey: is equivalent to -objectForKey:, except that it converts the returned value to a BOOL. If the value is an NSNumber, NO will be returned if the value is 0, YES otherwise. If the value is an NSString, values of "YES" or "1" will return YES, and values of "NO", "0", or any other string will return NO. If the value is absent or can't be converted to a BOOL, NO will be returned.
186        #[unsafe(method(boolForKey:))]
187        #[unsafe(method_family = none)]
188        pub fn boolForKey(&self, default_name: &NSString) -> bool;
189
190        #[cfg(all(feature = "NSString", feature = "NSURL"))]
191        /// -URLForKey: is equivalent to -objectForKey: except that it converts the returned value to an NSURL. If the value is an NSString path, then it will construct a file URL to that path. If the value is an archived URL from -setURL:forKey: it will be unarchived. If the value is absent or can't be converted to an NSURL, nil will be returned.
192        #[unsafe(method(URLForKey:))]
193        #[unsafe(method_family = none)]
194        pub fn URLForKey(&self, default_name: &NSString) -> Option<Retained<NSURL>>;
195
196        #[cfg(feature = "NSString")]
197        /// -setInteger:forKey: is equivalent to -setObject:forKey: except that the value is converted from an NSInteger to an NSNumber.
198        #[unsafe(method(setInteger:forKey:))]
199        #[unsafe(method_family = none)]
200        pub fn setInteger_forKey(&self, value: NSInteger, default_name: &NSString);
201
202        #[cfg(feature = "NSString")]
203        /// -setFloat:forKey: is equivalent to -setObject:forKey: except that the value is converted from a float to an NSNumber.
204        #[unsafe(method(setFloat:forKey:))]
205        #[unsafe(method_family = none)]
206        pub fn setFloat_forKey(&self, value: c_float, default_name: &NSString);
207
208        #[cfg(feature = "NSString")]
209        /// -setDouble:forKey: is equivalent to -setObject:forKey: except that the value is converted from a double to an NSNumber.
210        #[unsafe(method(setDouble:forKey:))]
211        #[unsafe(method_family = none)]
212        pub fn setDouble_forKey(&self, value: c_double, default_name: &NSString);
213
214        #[cfg(feature = "NSString")]
215        /// -setBool:forKey: is equivalent to -setObject:forKey: except that the value is converted from a BOOL to an NSNumber.
216        #[unsafe(method(setBool:forKey:))]
217        #[unsafe(method_family = none)]
218        pub fn setBool_forKey(&self, value: bool, default_name: &NSString);
219
220        #[cfg(all(feature = "NSString", feature = "NSURL"))]
221        /// -setURL:forKey is equivalent to -setObject:forKey: except that the value is archived to an NSData. Use -URLForKey: to retrieve values set this way.
222        #[unsafe(method(setURL:forKey:))]
223        #[unsafe(method_family = none)]
224        pub fn setURL_forKey(&self, url: Option<&NSURL>, default_name: &NSString);
225
226        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
227        /// -registerDefaults: adds the registrationDictionary to the last item in every search list. This means that after NSUserDefaults has looked for a value in every other valid location, it will look in registered defaults, making them useful as a "fallback" value. Registered defaults are never stored between runs of an application, and are visible only to the application that registers them.
228        ///
229        /// Default values from Defaults Configuration Files will automatically be registered.
230        ///
231        /// # Safety
232        ///
233        /// `registration_dictionary` generic should be of the correct type.
234        #[unsafe(method(registerDefaults:))]
235        #[unsafe(method_family = none)]
236        pub unsafe fn registerDefaults(
237            &self,
238            registration_dictionary: &NSDictionary<NSString, AnyObject>,
239        );
240
241        #[cfg(feature = "NSString")]
242        /// -addSuiteNamed: adds the full search list for 'suiteName' as a sub-search-list of the receiver's. The additional search lists are searched after the current domain, but before global defaults. Passing NSGlobalDomain or the current application's bundle identifier is unsupported.
243        #[unsafe(method(addSuiteNamed:))]
244        #[unsafe(method_family = none)]
245        pub fn addSuiteNamed(&self, suite_name: &NSString);
246
247        #[cfg(feature = "NSString")]
248        /// -removeSuiteNamed: removes a sub-searchlist added via -addSuiteNamed:.
249        #[unsafe(method(removeSuiteNamed:))]
250        #[unsafe(method_family = none)]
251        pub fn removeSuiteNamed(&self, suite_name: &NSString);
252
253        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
254        /// -dictionaryRepresentation returns a composite snapshot of the values in the receiver's search list, such that [[receiver dictionaryRepresentation] objectForKey:x] will return the same thing as [receiver objectForKey:x].
255        #[unsafe(method(dictionaryRepresentation))]
256        #[unsafe(method_family = none)]
257        pub fn dictionaryRepresentation(&self) -> Retained<NSDictionary<NSString, AnyObject>>;
258
259        #[cfg(all(feature = "NSArray", feature = "NSString"))]
260        #[unsafe(method(volatileDomainNames))]
261        #[unsafe(method_family = none)]
262        pub fn volatileDomainNames(&self) -> Retained<NSArray<NSString>>;
263
264        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
265        #[unsafe(method(volatileDomainForName:))]
266        #[unsafe(method_family = none)]
267        pub fn volatileDomainForName(
268            &self,
269            domain_name: &NSString,
270        ) -> Retained<NSDictionary<NSString, AnyObject>>;
271
272        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
273        /// # Safety
274        ///
275        /// `domain` generic should be of the correct type.
276        #[unsafe(method(setVolatileDomain:forName:))]
277        #[unsafe(method_family = none)]
278        pub unsafe fn setVolatileDomain_forName(
279            &self,
280            domain: &NSDictionary<NSString, AnyObject>,
281            domain_name: &NSString,
282        );
283
284        #[cfg(feature = "NSString")]
285        #[unsafe(method(removeVolatileDomainForName:))]
286        #[unsafe(method_family = none)]
287        pub fn removeVolatileDomainForName(&self, domain_name: &NSString);
288
289        #[cfg(feature = "NSArray")]
290        /// -persistentDomainNames returns an incomplete list of domains that have preferences stored in them.
291        #[deprecated = "Not recommended"]
292        #[unsafe(method(persistentDomainNames))]
293        #[unsafe(method_family = none)]
294        pub fn persistentDomainNames(&self) -> Retained<NSArray>;
295
296        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
297        /// -persistentDomainForName: returns a dictionary representation of the search list entry specified by 'domainName', the current user, and any host.
298        #[unsafe(method(persistentDomainForName:))]
299        #[unsafe(method_family = none)]
300        pub fn persistentDomainForName(
301            &self,
302            domain_name: &NSString,
303        ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
304
305        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
306        /// -setPersistentDomain:forName: replaces all values in the search list entry specified by 'domainName', the current user, and any host, with the values in 'domain'. The change will be persisted.
307        ///
308        /// # Safety
309        ///
310        /// `domain` generic should be of the correct type.
311        #[unsafe(method(setPersistentDomain:forName:))]
312        #[unsafe(method_family = none)]
313        pub unsafe fn setPersistentDomain_forName(
314            &self,
315            domain: &NSDictionary<NSString, AnyObject>,
316            domain_name: &NSString,
317        );
318
319        #[cfg(feature = "NSString")]
320        /// -removePersistentDomainForName: removes all values from the search list entry specified by 'domainName', the current user, and any host. The change is persistent.
321        #[unsafe(method(removePersistentDomainForName:))]
322        #[unsafe(method_family = none)]
323        pub fn removePersistentDomainForName(&self, domain_name: &NSString);
324
325        /// -synchronize is deprecated and will be marked with the API_DEPRECATED macro in a future release.
326        ///
327        /// -synchronize blocks the calling thread until all in-progress set operations have completed. This is no longer necessary. Replacements for previous uses of -synchronize depend on what the intent of calling synchronize was. If you synchronized...
328        /// - ...before reading in order to fetch updated values: remove the synchronize call
329        /// - ...after writing in order to notify another program to read: the other program can use KVO to observe the default without needing to notify
330        /// - ...before exiting in a non-app (command line tool, agent, or daemon) process: call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication)
331        /// - ...for any other reason: remove the synchronize call
332        #[unsafe(method(synchronize))]
333        #[unsafe(method_family = none)]
334        pub fn synchronize(&self) -> bool;
335
336        #[cfg(feature = "NSString")]
337        #[unsafe(method(objectIsForcedForKey:))]
338        #[unsafe(method_family = none)]
339        pub fn objectIsForcedForKey(&self, key: &NSString) -> bool;
340
341        #[cfg(feature = "NSString")]
342        #[unsafe(method(objectIsForcedForKey:inDomain:))]
343        #[unsafe(method_family = none)]
344        pub fn objectIsForcedForKey_inDomain(&self, key: &NSString, domain: &NSString) -> bool;
345    );
346}
347
348/// Methods declared on superclass `NSObject`.
349impl NSUserDefaults {
350    extern_methods!(
351        #[unsafe(method(new))]
352        #[unsafe(method_family = new)]
353        pub fn new() -> Retained<Self>;
354    );
355}
356
357impl DefaultRetained for NSUserDefaults {
358    #[inline]
359    fn default_retained() -> Retained<Self> {
360        Self::new()
361    }
362}
363
364extern "C" {
365    /// NSUserDefaultsSizeLimitExceededNotification is posted on the main queue when more data is stored in user defaults than is allowed. Currently there is no limit for local user defaults except on tvOS, where a warning notification will be posted at 512kB, and the process terminated at 1MB. For ubiquitous defaults, the limit depends on the logged in iCloud user.
366    ///
367    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsuserdefaultssizelimitexceedednotification?language=objc)
368    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
369    pub static NSUserDefaultsSizeLimitExceededNotification: &'static NSNotificationName;
370}
371
372extern "C" {
373    /// NSUbiquitousUserDefaultsNoCloudAccountNotification is posted on the main queue to the default notification center when a cloud default is set, but no iCloud user is logged in.
374    ///
375    /// This is not necessarily an error: ubiquitous defaults set when no iCloud user is logged in will be uploaded the next time one is available if configured to do so.
376    ///
377    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultsnocloudaccountnotification?language=objc)
378    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
379    #[deprecated = "Notification is never posted"]
380    pub static NSUbiquitousUserDefaultsNoCloudAccountNotification: &'static NSNotificationName;
381}
382
383extern "C" {
384    /// NSUbiquitousUserDefaultsDidChangeAccountsNotification is posted on the main queue to the default notification center when the user changes the primary iCloud account. The keys and values in the local key-value store have been replaced with those from the new account, regardless of the relative timestamps.
385    ///
386    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultsdidchangeaccountsnotification?language=objc)
387    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
388    #[deprecated = "Notification is never posted"]
389    pub static NSUbiquitousUserDefaultsDidChangeAccountsNotification: &'static NSNotificationName;
390}
391
392extern "C" {
393    /// NSUbiquitousUserDefaultsCompletedInitialSyncNotification is posted on the main queue when ubiquitous defaults finish downloading the first time a device is connected to an iCloud account, and when a user switches their primary iCloud account.
394    ///
395    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultscompletedinitialsyncnotification?language=objc)
396    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
397    #[deprecated = "Notification is never posted"]
398    pub static NSUbiquitousUserDefaultsCompletedInitialSyncNotification:
399        &'static NSNotificationName;
400}
401
402extern "C" {
403    /// NSUserDefaultsDidChangeNotification is posted whenever any user defaults changed within the current process, but is not posted when ubiquitous defaults change, or when an outside process changes defaults. Using key-value observing to register observers for the specific keys of interest will inform you of all updates, regardless of where they're from.
404    ///
405    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsuserdefaultsdidchangenotification?language=objc)
406    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
407    pub static NSUserDefaultsDidChangeNotification: &'static NSNotificationName;
408}
409
410extern "C" {
411    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsweekdaynamearray?language=objc)
412    #[cfg(feature = "NSString")]
413    #[deprecated]
414    pub static NSWeekDayNameArray: &'static NSString;
415}
416
417extern "C" {
418    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortweekdaynamearray?language=objc)
419    #[cfg(feature = "NSString")]
420    #[deprecated]
421    pub static NSShortWeekDayNameArray: &'static NSString;
422}
423
424extern "C" {
425    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsmonthnamearray?language=objc)
426    #[cfg(feature = "NSString")]
427    #[deprecated]
428    pub static NSMonthNameArray: &'static NSString;
429}
430
431extern "C" {
432    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortmonthnamearray?language=objc)
433    #[cfg(feature = "NSString")]
434    #[deprecated]
435    pub static NSShortMonthNameArray: &'static NSString;
436}
437
438extern "C" {
439    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nstimeformatstring?language=objc)
440    #[cfg(feature = "NSString")]
441    #[deprecated]
442    pub static NSTimeFormatString: &'static NSString;
443}
444
445extern "C" {
446    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdateformatstring?language=objc)
447    #[cfg(feature = "NSString")]
448    #[deprecated]
449    pub static NSDateFormatString: &'static NSString;
450}
451
452extern "C" {
453    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nstimedateformatstring?language=objc)
454    #[cfg(feature = "NSString")]
455    #[deprecated]
456    pub static NSTimeDateFormatString: &'static NSString;
457}
458
459extern "C" {
460    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshorttimedateformatstring?language=objc)
461    #[cfg(feature = "NSString")]
462    #[deprecated]
463    pub static NSShortTimeDateFormatString: &'static NSString;
464}
465
466extern "C" {
467    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nscurrencysymbol?language=objc)
468    #[cfg(feature = "NSString")]
469    #[deprecated]
470    pub static NSCurrencySymbol: &'static NSString;
471}
472
473extern "C" {
474    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdecimalseparator?language=objc)
475    #[cfg(feature = "NSString")]
476    #[deprecated]
477    pub static NSDecimalSeparator: &'static NSString;
478}
479
480extern "C" {
481    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsthousandsseparator?language=objc)
482    #[cfg(feature = "NSString")]
483    #[deprecated]
484    pub static NSThousandsSeparator: &'static NSString;
485}
486
487extern "C" {
488    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdecimaldigits?language=objc)
489    #[cfg(feature = "NSString")]
490    #[deprecated]
491    pub static NSDecimalDigits: &'static NSString;
492}
493
494extern "C" {
495    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsampmdesignation?language=objc)
496    #[cfg(feature = "NSString")]
497    #[deprecated]
498    pub static NSAMPMDesignation: &'static NSString;
499}
500
501extern "C" {
502    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nshournamedesignations?language=objc)
503    #[cfg(feature = "NSString")]
504    #[deprecated]
505    pub static NSHourNameDesignations: &'static NSString;
506}
507
508extern "C" {
509    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsyearmonthweekdesignations?language=objc)
510    #[cfg(feature = "NSString")]
511    #[deprecated]
512    pub static NSYearMonthWeekDesignations: &'static NSString;
513}
514
515extern "C" {
516    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsearliertimedesignations?language=objc)
517    #[cfg(feature = "NSString")]
518    #[deprecated]
519    pub static NSEarlierTimeDesignations: &'static NSString;
520}
521
522extern "C" {
523    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nslatertimedesignations?language=objc)
524    #[cfg(feature = "NSString")]
525    #[deprecated]
526    pub static NSLaterTimeDesignations: &'static NSString;
527}
528
529extern "C" {
530    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsthisdaydesignations?language=objc)
531    #[cfg(feature = "NSString")]
532    #[deprecated]
533    pub static NSThisDayDesignations: &'static NSString;
534}
535
536extern "C" {
537    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnextdaydesignations?language=objc)
538    #[cfg(feature = "NSString")]
539    #[deprecated]
540    pub static NSNextDayDesignations: &'static NSString;
541}
542
543extern "C" {
544    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnextnextdaydesignations?language=objc)
545    #[cfg(feature = "NSString")]
546    #[deprecated]
547    pub static NSNextNextDayDesignations: &'static NSString;
548}
549
550extern "C" {
551    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nspriordaydesignations?language=objc)
552    #[cfg(feature = "NSString")]
553    #[deprecated]
554    pub static NSPriorDayDesignations: &'static NSString;
555}
556
557extern "C" {
558    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdatetimeordering?language=objc)
559    #[cfg(feature = "NSString")]
560    #[deprecated]
561    pub static NSDateTimeOrdering: &'static NSString;
562}
563
564extern "C" {
565    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsinternationalcurrencystring?language=objc)
566    #[cfg(feature = "NSString")]
567    #[deprecated]
568    pub static NSInternationalCurrencyString: &'static NSString;
569}
570
571extern "C" {
572    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortdateformatstring?language=objc)
573    #[cfg(feature = "NSString")]
574    #[deprecated]
575    pub static NSShortDateFormatString: &'static NSString;
576}
577
578extern "C" {
579    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nspositivecurrencyformatstring?language=objc)
580    #[cfg(feature = "NSString")]
581    #[deprecated]
582    pub static NSPositiveCurrencyFormatString: &'static NSString;
583}
584
585extern "C" {
586    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnegativecurrencyformatstring?language=objc)
587    #[cfg(feature = "NSString")]
588    #[deprecated]
589    pub static NSNegativeCurrencyFormatString: &'static NSString;
590}