mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-26 23:05:34 +00:00

- CFArrayGetCountOfValue fix - NSString * to NSString * const fixes - requestUserAttention: implementation - NSTrackingArea fix, retains userInfo, does not retain userData - removed unused code from NSWindowBackgroundView - couple more font mappings in NSFont - fixes to NSTrackingArea behavior in NSView - faster visibleRect, precalculate as zero rect if hidden - Fixed NSTrackingInVisibleRect behavior, doesn't do hit test - Fixed NSTrackingArea testing to properly order exit/enter events - setFrame: doesn't do anything if the new value is the same as the old value - reorganize NSWIndow setFrame:display:/setFrame:display:animation: - mark window as needing display if display called and not visible - Win32Display will load fonts in main bundle for private usage - use of setControlView: for cells in NSOutlineView and NSTableView - _setSelectedRowIndexes: added to NSTableView for KVO - NSString cString related fixes - NSStringFormatter changes to accomodate NSNumberFormatter grouping separator - NSNumberFormatter fixes - appendFloat_generic removed, might cause problems - NSSet fixes - NSSocket_windows fixes for SSL handler - per thread select capabilities - NSLog uses fprintf instead of WriteFile so it synchronizes with NSCLog
62 lines
2.7 KiB
Objective-C
62 lines
2.7 KiB
Objective-C
/* Copyright (c) 2006-2007 Christopher J. W. Lloyd
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
#import <Foundation/NSObject.h>
|
|
|
|
@class NSArray,NSDictionary;
|
|
|
|
FOUNDATION_EXPORT NSString * const NSLocaleCountryCode;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleLanguageCode;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleVariantCode;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleIdentifier;
|
|
|
|
FOUNDATION_EXPORT NSString * const NSLocaleGroupingSeparator;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleDecimalSeparator;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleCalendar;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleCurrencyCode;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleCurrencySymbol;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleUsesMetricSystem;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleMeasurementSystem;
|
|
|
|
FOUNDATION_EXPORT NSString * const NSLocaleScriptCode;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleExemplarCharacterSet;
|
|
FOUNDATION_EXPORT NSString * const NSLocaleCollationIdentifier;
|
|
|
|
FOUNDATION_EXPORT NSString * const NSCurrentLocaleDidChangeNotification;
|
|
|
|
@interface NSLocale : NSObject <NSCoding,NSCopying> {
|
|
NSDictionary *_locale;
|
|
}
|
|
|
|
+systemLocale;
|
|
+currentLocale;
|
|
+autoupdatingCurrentLocale;
|
|
|
|
+(NSArray *)availableLocaleIdentifiers;
|
|
|
|
+(NSString *)canonicalLocaleIdentifierFromString:(NSString *)string;
|
|
|
|
+(NSDictionary *)componentsFromLocaleIdentifier:(NSString *)identifier;
|
|
+(NSString *)localeIdentifierFromComponents:(NSDictionary *)components;
|
|
|
|
+(NSArray *)ISOCountryCodes;
|
|
+(NSArray *)ISOLanguageCodes;
|
|
+(NSArray *)ISOCurrencyCodes;
|
|
+(NSArray *)commonISOCurrencyCodes;
|
|
|
|
+(NSArray *)preferredLanguages;
|
|
|
|
-initWithLocaleIdentifier:(NSString *)identifier;
|
|
|
|
-(NSString *)localeIdentifier;
|
|
|
|
-objectForKey:key;
|
|
|
|
-(NSString *)displayNameForKey:key value:value;
|
|
|
|
@end
|