]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s |
2 | # 1 "<command line>" | |
3 | # 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3 | |
4 | typedef signed char BOOL; | |
5 | typedef unsigned int NSUInteger; | |
6 | typedef struct _NSZone NSZone; | |
7 | ||
8 | @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; | |
9 | ||
10 | @protocol NSObject | |
11 | - (BOOL)isEqual:(id)object; | |
12 | + class; | |
13 | @end | |
14 | ||
15 | @protocol NSCopying | |
16 | - (id)copyWithZone:(NSZone *)zone; | |
17 | @end | |
18 | ||
19 | @protocol NSMutableCopying | |
20 | - (id)mutableCopyWithZone:(NSZone *)zone; | |
21 | @end | |
22 | ||
23 | @protocol NSCoding | |
24 | - (void)encodeWithCoder:(NSCoder *)aCoder; | |
25 | @end | |
26 | ||
27 | @interface NSObject <NSObject> {} | |
28 | @end | |
29 | ||
30 | typedef struct {} NSFastEnumerationState; | |
31 | ||
32 | @protocol NSFastEnumeration | |
33 | - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len; | |
34 | @end | |
35 | ||
36 | @interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> | |
37 | - (NSUInteger)count; | |
38 | @end | |
39 | ||
40 | @interface NSMutableArray : NSArray | |
41 | - (void)addObject:(id)anObject; | |
42 | + (id)arrayWithCapacity:(int)numItems; | |
43 | @end | |
44 | ||
45 | @interface NSBundle : NSObject {} | |
46 | + (NSBundle *)bundleForClass:(Class)aClass; | |
47 | - (NSString *)bundlePath; | |
48 | - (void)setBundlePath:(NSString *)x; | |
49 | @end | |
50 | ||
51 | @interface NSException : NSObject <NSCopying, NSCoding> {} | |
52 | @end | |
53 | ||
54 | @class NSArray, NSDictionary, NSError, NSString, NSURL; | |
55 | ||
56 | @interface DTPlugInManager : NSObject | |
57 | @end | |
58 | ||
59 | @implementation DTPlugInManager | |
60 | + (DTPlugInManager *)defaultPlugInManager { | |
61 | @try { | |
62 | NSMutableArray *plugInPaths = [NSMutableArray arrayWithCapacity:100]; | |
63 | NSBundle *frameworkBundle = [NSBundle bundleForClass:[DTPlugInManager class]]; | |
64 | frameworkBundle.bundlePath = 0; | |
65 | [plugInPaths addObject:frameworkBundle.bundlePath]; | |
66 | } | |
67 | @catch (NSException *exception) {} | |
68 | } | |
69 | @end |