mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 20:19:40 +00:00
0138291acf
- Removed NSMethodSignature cache, not thread safe. - Removed NSIndexPath cache, not thread safe. - Moved NSPropertyListReader_vintage class caching into instance. - Removed caching of page size in NSPageSize() for linux/solaris/darwin. - objc cache entry initialization tweaks - removed unused _selectorCount - Moved NSBundle static _sharedLookInDirectoriesArray to per-instance - Moved NSProcessInfo static _counter and _counterLock to per instance - Uncommented NSClassDescription use of @synchronized as the compiler can handle it now. - Remove _fontHolder from NSInterfacePartAttributedString - declared some variables with static scope as static
83 lines
3.7 KiB
Objective-C
Executable File
83 lines
3.7 KiB
Objective-C
Executable File
/* 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,NSString,NSError;
|
|
|
|
FOUNDATION_EXPORT NSString *NSBundleDidLoadNotification;
|
|
FOUNDATION_EXPORT NSString *NSLoadedClasses;
|
|
|
|
@interface NSBundle : NSObject {
|
|
NSString *_path;
|
|
NSString *_resourcePath;
|
|
NSDictionary *_infoDictionary;
|
|
NSString *_executablePath;
|
|
NSArray *_lookInDirectories;
|
|
BOOL _isLoaded;
|
|
}
|
|
|
|
+(NSArray *)allBundles;
|
|
+(NSArray *)allFrameworks;
|
|
|
|
+(NSBundle *)mainBundle;
|
|
|
|
+(NSBundle *)bundleForClass:(Class)aClass;
|
|
+(NSBundle *)bundleWithIdentifier:(NSString *)identifier;
|
|
+(NSBundle *)bundleWithPath:(NSString *)path;
|
|
|
|
+(NSString *)pathForResource:(NSString *)name ofType:(NSString *)type inDirectory:(NSString *)path;
|
|
+(NSArray *)pathsForResourcesOfType:(NSString *)type inDirectory:(NSString *)path;
|
|
+(NSArray *)preferredLocalizationsFromArray:(NSArray *)localizations;
|
|
+(NSArray *)preferredLocalizationsFromArray:(NSArray *)localizations forPreferences:(NSArray *)preferences;
|
|
|
|
-initWithPath:(NSString *)path;
|
|
|
|
-(NSString *)bundlePath;
|
|
-(NSString *)resourcePath;
|
|
-(NSString *)builtInPlugInsPath;
|
|
-(NSDictionary *)infoDictionary;
|
|
-(NSDictionary *)localizedInfoDictionary;
|
|
-objectForInfoDictionaryKey:(NSString *)key;
|
|
-(NSString *)bundleIdentifier;
|
|
-(NSString *)developmentLocalization;
|
|
-(NSArray *)executableArchitectures;
|
|
-(NSString *)executablePath;
|
|
-(NSArray *)localizations;
|
|
-(NSArray *)preferredLocalizations;
|
|
-(NSString *)privateFrameworksPath;
|
|
-(NSString *)sharedFrameworksPath;
|
|
-(NSString *)sharedSupportPath;
|
|
|
|
-(NSString *)pathForAuxiliaryExecutable:(NSString *)executable;
|
|
|
|
-(Class)principalClass;
|
|
-(Class)classNamed:(NSString *)className;
|
|
|
|
-(BOOL)isLoaded;
|
|
-(BOOL)preflightAndReturnError:(NSError **)error;
|
|
-(BOOL)loadAndReturnError:(NSError **)error;
|
|
|
|
-(BOOL)load;
|
|
-(BOOL)unload;
|
|
|
|
-(NSString *)pathForResource:(NSString *)name ofType:(NSString *)type;
|
|
-(NSString *)pathForResource:(NSString *)name ofType:(NSString *)type inDirectory:(NSString *)path;
|
|
-(NSString *)pathForResource:(NSString *)name ofType:(NSString *)type inDirectory:(NSString *)path forLocalization:(NSString *)localization;
|
|
|
|
-(NSArray *)pathsForResourcesOfType:(NSString *)type inDirectory:(NSString *)path;
|
|
-(NSArray *)pathsForResourcesOfType:(NSString *)type inDirectory:(NSString *)path forLocalization:(NSString *)localization;
|
|
|
|
-(NSString *)localizedStringForKey:(NSString *)key value:(NSString *)value table:(NSString *)table;
|
|
|
|
@end
|
|
|
|
FOUNDATION_EXPORT NSString *NSLocalizedString(NSString *key,NSString *comment);
|
|
FOUNDATION_EXPORT NSString *NSLocalizedStringFromTable(NSString *key,NSString *table,NSString *comment);
|
|
FOUNDATION_EXPORT NSString *NSLocalizedStringFromTableInBundle(NSString *key,NSString *table,NSBundle *bundle,NSString *comment);
|