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