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 unsafe 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 unsafe fn resetStandardUserDefaults();
84
85        /// -init is equivalent to -initWithSuiteName:nil
86        #[unsafe(method(init))]
87        #[unsafe(method_family = init)]
88        pub unsafe 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 unsafe 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 unsafe fn initWithUser(
105            this: Allocated<Self>,
106            username: &NSString,
107        ) -> Option<Retained<Self>>;
108
109        #[cfg(feature = "NSString")]
110        /// -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.
111        #[unsafe(method(objectForKey:))]
112        #[unsafe(method_family = none)]
113        pub unsafe fn objectForKey(&self, default_name: &NSString) -> Option<Retained<AnyObject>>;
114
115        #[cfg(feature = "NSString")]
116        /// -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.
117        #[unsafe(method(setObject:forKey:))]
118        #[unsafe(method_family = none)]
119        pub unsafe fn setObject_forKey(&self, value: Option<&AnyObject>, default_name: &NSString);
120
121        #[cfg(feature = "NSString")]
122        /// -removeObjectForKey: is equivalent to -[... setObject:nil forKey:defaultName]
123        #[unsafe(method(removeObjectForKey:))]
124        #[unsafe(method_family = none)]
125        pub unsafe fn removeObjectForKey(&self, default_name: &NSString);
126
127        #[cfg(feature = "NSString")]
128        /// -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.
129        #[unsafe(method(stringForKey:))]
130        #[unsafe(method_family = none)]
131        pub unsafe fn stringForKey(&self, default_name: &NSString) -> Option<Retained<NSString>>;
132
133        #[cfg(all(feature = "NSArray", feature = "NSString"))]
134        /// -arrayForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray.
135        #[unsafe(method(arrayForKey:))]
136        #[unsafe(method_family = none)]
137        pub unsafe fn arrayForKey(&self, default_name: &NSString) -> Option<Retained<NSArray>>;
138
139        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
140        /// -dictionaryForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSDictionary.
141        #[unsafe(method(dictionaryForKey:))]
142        #[unsafe(method_family = none)]
143        pub unsafe fn dictionaryForKey(
144            &self,
145            default_name: &NSString,
146        ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
147
148        #[cfg(all(feature = "NSData", feature = "NSString"))]
149        /// -dataForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSData.
150        #[unsafe(method(dataForKey:))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn dataForKey(&self, default_name: &NSString) -> Option<Retained<NSData>>;
153
154        #[cfg(all(feature = "NSArray", feature = "NSString"))]
155        /// -stringForKey: is equivalent to -objectForKey:, except that it will return nil if the value is not an NSArray
156        /// <NSString
157        /// *>. Note that unlike -stringForKey:, NSNumbers are not converted to NSStrings.
158        #[unsafe(method(stringArrayForKey:))]
159        #[unsafe(method_family = none)]
160        pub unsafe fn stringArrayForKey(
161            &self,
162            default_name: &NSString,
163        ) -> Option<Retained<NSArray<NSString>>>;
164
165        #[cfg(feature = "NSString")]
166        /// -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.
167        #[unsafe(method(integerForKey:))]
168        #[unsafe(method_family = none)]
169        pub unsafe fn integerForKey(&self, default_name: &NSString) -> NSInteger;
170
171        #[cfg(feature = "NSString")]
172        /// -floatForKey: is similar to -integerForKey:, except that it returns a float, and boolean values will not be converted.
173        #[unsafe(method(floatForKey:))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn floatForKey(&self, default_name: &NSString) -> c_float;
176
177        #[cfg(feature = "NSString")]
178        /// -doubleForKey: is similar to -integerForKey:, except that it returns a double, and boolean values will not be converted.
179        #[unsafe(method(doubleForKey:))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn doubleForKey(&self, default_name: &NSString) -> c_double;
182
183        #[cfg(feature = "NSString")]
184        /// -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.
185        #[unsafe(method(boolForKey:))]
186        #[unsafe(method_family = none)]
187        pub unsafe fn boolForKey(&self, default_name: &NSString) -> bool;
188
189        #[cfg(all(feature = "NSString", feature = "NSURL"))]
190        /// -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.
191        #[unsafe(method(URLForKey:))]
192        #[unsafe(method_family = none)]
193        pub unsafe fn URLForKey(&self, default_name: &NSString) -> Option<Retained<NSURL>>;
194
195        #[cfg(feature = "NSString")]
196        /// -setInteger:forKey: is equivalent to -setObject:forKey: except that the value is converted from an NSInteger to an NSNumber.
197        #[unsafe(method(setInteger:forKey:))]
198        #[unsafe(method_family = none)]
199        pub unsafe fn setInteger_forKey(&self, value: NSInteger, default_name: &NSString);
200
201        #[cfg(feature = "NSString")]
202        /// -setFloat:forKey: is equivalent to -setObject:forKey: except that the value is converted from a float to an NSNumber.
203        #[unsafe(method(setFloat:forKey:))]
204        #[unsafe(method_family = none)]
205        pub unsafe fn setFloat_forKey(&self, value: c_float, default_name: &NSString);
206
207        #[cfg(feature = "NSString")]
208        /// -setDouble:forKey: is equivalent to -setObject:forKey: except that the value is converted from a double to an NSNumber.
209        #[unsafe(method(setDouble:forKey:))]
210        #[unsafe(method_family = none)]
211        pub unsafe fn setDouble_forKey(&self, value: c_double, default_name: &NSString);
212
213        #[cfg(feature = "NSString")]
214        /// -setBool:forKey: is equivalent to -setObject:forKey: except that the value is converted from a BOOL to an NSNumber.
215        #[unsafe(method(setBool:forKey:))]
216        #[unsafe(method_family = none)]
217        pub unsafe fn setBool_forKey(&self, value: bool, default_name: &NSString);
218
219        #[cfg(all(feature = "NSString", feature = "NSURL"))]
220        /// -setURL:forKey is equivalent to -setObject:forKey: except that the value is archived to an NSData. Use -URLForKey: to retrieve values set this way.
221        #[unsafe(method(setURL:forKey:))]
222        #[unsafe(method_family = none)]
223        pub unsafe fn setURL_forKey(&self, url: Option<&NSURL>, default_name: &NSString);
224
225        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
226        /// -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.
227        ///
228        /// Default values from Defaults Configuration Files will automatically be registered.
229        #[unsafe(method(registerDefaults:))]
230        #[unsafe(method_family = none)]
231        pub unsafe fn registerDefaults(
232            &self,
233            registration_dictionary: &NSDictionary<NSString, AnyObject>,
234        );
235
236        #[cfg(feature = "NSString")]
237        /// -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.
238        #[unsafe(method(addSuiteNamed:))]
239        #[unsafe(method_family = none)]
240        pub unsafe fn addSuiteNamed(&self, suite_name: &NSString);
241
242        #[cfg(feature = "NSString")]
243        /// -removeSuiteNamed: removes a sub-searchlist added via -addSuiteNamed:.
244        #[unsafe(method(removeSuiteNamed:))]
245        #[unsafe(method_family = none)]
246        pub unsafe fn removeSuiteNamed(&self, suite_name: &NSString);
247
248        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
249        /// -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].
250        #[unsafe(method(dictionaryRepresentation))]
251        #[unsafe(method_family = none)]
252        pub unsafe fn dictionaryRepresentation(
253            &self,
254        ) -> Retained<NSDictionary<NSString, AnyObject>>;
255
256        #[cfg(all(feature = "NSArray", feature = "NSString"))]
257        #[unsafe(method(volatileDomainNames))]
258        #[unsafe(method_family = none)]
259        pub unsafe fn volatileDomainNames(&self) -> Retained<NSArray<NSString>>;
260
261        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
262        #[unsafe(method(volatileDomainForName:))]
263        #[unsafe(method_family = none)]
264        pub unsafe fn volatileDomainForName(
265            &self,
266            domain_name: &NSString,
267        ) -> Retained<NSDictionary<NSString, AnyObject>>;
268
269        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
270        #[unsafe(method(setVolatileDomain:forName:))]
271        #[unsafe(method_family = none)]
272        pub unsafe fn setVolatileDomain_forName(
273            &self,
274            domain: &NSDictionary<NSString, AnyObject>,
275            domain_name: &NSString,
276        );
277
278        #[cfg(feature = "NSString")]
279        #[unsafe(method(removeVolatileDomainForName:))]
280        #[unsafe(method_family = none)]
281        pub unsafe fn removeVolatileDomainForName(&self, domain_name: &NSString);
282
283        #[cfg(feature = "NSArray")]
284        /// -persistentDomainNames returns an incomplete list of domains that have preferences stored in them.
285        #[deprecated = "Not recommended"]
286        #[unsafe(method(persistentDomainNames))]
287        #[unsafe(method_family = none)]
288        pub unsafe fn persistentDomainNames(&self) -> Retained<NSArray>;
289
290        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
291        /// -persistentDomainForName: returns a dictionary representation of the search list entry specified by 'domainName', the current user, and any host.
292        #[unsafe(method(persistentDomainForName:))]
293        #[unsafe(method_family = none)]
294        pub unsafe fn persistentDomainForName(
295            &self,
296            domain_name: &NSString,
297        ) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
298
299        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
300        /// -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.
301        #[unsafe(method(setPersistentDomain:forName:))]
302        #[unsafe(method_family = none)]
303        pub unsafe fn setPersistentDomain_forName(
304            &self,
305            domain: &NSDictionary<NSString, AnyObject>,
306            domain_name: &NSString,
307        );
308
309        #[cfg(feature = "NSString")]
310        /// -removePersistentDomainForName: removes all values from the search list entry specified by 'domainName', the current user, and any host. The change is persistent.
311        #[unsafe(method(removePersistentDomainForName:))]
312        #[unsafe(method_family = none)]
313        pub unsafe fn removePersistentDomainForName(&self, domain_name: &NSString);
314
315        /// -synchronize is deprecated and will be marked with the API_DEPRECATED macro in a future release.
316        ///
317        /// -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...
318        /// - ...before reading in order to fetch updated values: remove the synchronize call
319        /// - ...after writing in order to notify another program to read: the other program can use KVO to observe the default without needing to notify
320        /// - ...before exiting in a non-app (command line tool, agent, or daemon) process: call CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication)
321        /// - ...for any other reason: remove the synchronize call
322        #[unsafe(method(synchronize))]
323        #[unsafe(method_family = none)]
324        pub unsafe fn synchronize(&self) -> bool;
325
326        #[cfg(feature = "NSString")]
327        #[unsafe(method(objectIsForcedForKey:))]
328        #[unsafe(method_family = none)]
329        pub unsafe fn objectIsForcedForKey(&self, key: &NSString) -> bool;
330
331        #[cfg(feature = "NSString")]
332        #[unsafe(method(objectIsForcedForKey:inDomain:))]
333        #[unsafe(method_family = none)]
334        pub unsafe fn objectIsForcedForKey_inDomain(
335            &self,
336            key: &NSString,
337            domain: &NSString,
338        ) -> bool;
339    );
340}
341
342/// Methods declared on superclass `NSObject`.
343impl NSUserDefaults {
344    extern_methods!(
345        #[unsafe(method(new))]
346        #[unsafe(method_family = new)]
347        pub unsafe fn new() -> Retained<Self>;
348    );
349}
350
351extern "C" {
352    /// 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.
353    ///
354    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsuserdefaultssizelimitexceedednotification?language=objc)
355    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
356    pub static NSUserDefaultsSizeLimitExceededNotification: &'static NSNotificationName;
357}
358
359extern "C" {
360    /// 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.
361    ///
362    /// 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.
363    ///
364    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultsnocloudaccountnotification?language=objc)
365    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
366    pub static NSUbiquitousUserDefaultsNoCloudAccountNotification: &'static NSNotificationName;
367}
368
369extern "C" {
370    /// 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.
371    ///
372    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultsdidchangeaccountsnotification?language=objc)
373    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
374    pub static NSUbiquitousUserDefaultsDidChangeAccountsNotification: &'static NSNotificationName;
375}
376
377extern "C" {
378    /// 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.
379    ///
380    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsubiquitoususerdefaultscompletedinitialsyncnotification?language=objc)
381    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
382    pub static NSUbiquitousUserDefaultsCompletedInitialSyncNotification:
383        &'static NSNotificationName;
384}
385
386extern "C" {
387    /// 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.
388    ///
389    /// See also [Apple's documentation](https://developer.apple.com/documentation/foundation/nsuserdefaultsdidchangenotification?language=objc)
390    #[cfg(all(feature = "NSNotification", feature = "NSString"))]
391    pub static NSUserDefaultsDidChangeNotification: &'static NSNotificationName;
392}
393
394extern "C" {
395    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsweekdaynamearray?language=objc)
396    #[cfg(feature = "NSString")]
397    pub static NSWeekDayNameArray: &'static NSString;
398}
399
400extern "C" {
401    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortweekdaynamearray?language=objc)
402    #[cfg(feature = "NSString")]
403    pub static NSShortWeekDayNameArray: &'static NSString;
404}
405
406extern "C" {
407    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsmonthnamearray?language=objc)
408    #[cfg(feature = "NSString")]
409    pub static NSMonthNameArray: &'static NSString;
410}
411
412extern "C" {
413    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortmonthnamearray?language=objc)
414    #[cfg(feature = "NSString")]
415    pub static NSShortMonthNameArray: &'static NSString;
416}
417
418extern "C" {
419    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nstimeformatstring?language=objc)
420    #[cfg(feature = "NSString")]
421    pub static NSTimeFormatString: &'static NSString;
422}
423
424extern "C" {
425    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdateformatstring?language=objc)
426    #[cfg(feature = "NSString")]
427    pub static NSDateFormatString: &'static NSString;
428}
429
430extern "C" {
431    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nstimedateformatstring?language=objc)
432    #[cfg(feature = "NSString")]
433    pub static NSTimeDateFormatString: &'static NSString;
434}
435
436extern "C" {
437    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshorttimedateformatstring?language=objc)
438    #[cfg(feature = "NSString")]
439    pub static NSShortTimeDateFormatString: &'static NSString;
440}
441
442extern "C" {
443    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nscurrencysymbol?language=objc)
444    #[cfg(feature = "NSString")]
445    pub static NSCurrencySymbol: &'static NSString;
446}
447
448extern "C" {
449    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdecimalseparator?language=objc)
450    #[cfg(feature = "NSString")]
451    pub static NSDecimalSeparator: &'static NSString;
452}
453
454extern "C" {
455    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsthousandsseparator?language=objc)
456    #[cfg(feature = "NSString")]
457    pub static NSThousandsSeparator: &'static NSString;
458}
459
460extern "C" {
461    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdecimaldigits?language=objc)
462    #[cfg(feature = "NSString")]
463    pub static NSDecimalDigits: &'static NSString;
464}
465
466extern "C" {
467    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsampmdesignation?language=objc)
468    #[cfg(feature = "NSString")]
469    pub static NSAMPMDesignation: &'static NSString;
470}
471
472extern "C" {
473    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nshournamedesignations?language=objc)
474    #[cfg(feature = "NSString")]
475    pub static NSHourNameDesignations: &'static NSString;
476}
477
478extern "C" {
479    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsyearmonthweekdesignations?language=objc)
480    #[cfg(feature = "NSString")]
481    pub static NSYearMonthWeekDesignations: &'static NSString;
482}
483
484extern "C" {
485    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsearliertimedesignations?language=objc)
486    #[cfg(feature = "NSString")]
487    pub static NSEarlierTimeDesignations: &'static NSString;
488}
489
490extern "C" {
491    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nslatertimedesignations?language=objc)
492    #[cfg(feature = "NSString")]
493    pub static NSLaterTimeDesignations: &'static NSString;
494}
495
496extern "C" {
497    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsthisdaydesignations?language=objc)
498    #[cfg(feature = "NSString")]
499    pub static NSThisDayDesignations: &'static NSString;
500}
501
502extern "C" {
503    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnextdaydesignations?language=objc)
504    #[cfg(feature = "NSString")]
505    pub static NSNextDayDesignations: &'static NSString;
506}
507
508extern "C" {
509    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnextnextdaydesignations?language=objc)
510    #[cfg(feature = "NSString")]
511    pub static NSNextNextDayDesignations: &'static NSString;
512}
513
514extern "C" {
515    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nspriordaydesignations?language=objc)
516    #[cfg(feature = "NSString")]
517    pub static NSPriorDayDesignations: &'static NSString;
518}
519
520extern "C" {
521    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsdatetimeordering?language=objc)
522    #[cfg(feature = "NSString")]
523    pub static NSDateTimeOrdering: &'static NSString;
524}
525
526extern "C" {
527    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsinternationalcurrencystring?language=objc)
528    #[cfg(feature = "NSString")]
529    pub static NSInternationalCurrencyString: &'static NSString;
530}
531
532extern "C" {
533    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsshortdateformatstring?language=objc)
534    #[cfg(feature = "NSString")]
535    pub static NSShortDateFormatString: &'static NSString;
536}
537
538extern "C" {
539    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nspositivecurrencyformatstring?language=objc)
540    #[cfg(feature = "NSString")]
541    pub static NSPositiveCurrencyFormatString: &'static NSString;
542}
543
544extern "C" {
545    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsnegativecurrencyformatstring?language=objc)
546    #[cfg(feature = "NSString")]
547    pub static NSNegativeCurrencyFormatString: &'static NSString;
548}