9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
* the packaging of this file.
*/
#import "OFObject.h"
@class OFString;
@class OFArray;
@class OFMutableArray;
#define OF_APPLICATION_DELEGATE(cls) \
int \
main(int argc, char *argv[]) \
{ \
return of_application_main(argc, argv, [cls class]); \
}
|
>
>
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
* the packaging of this file.
*/
#import "OFObject.h"
@class OFString;
@class OFArray;
@class OFDictionary;
@class OFMutableArray;
@class OFMutableDictionary;
#define OF_APPLICATION_DELEGATE(cls) \
int \
main(int argc, char *argv[]) \
{ \
return of_application_main(argc, argv, [cls class]); \
}
|
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/**
* \brief Represents the application as an object.
*/
@interface OFApplication: OFObject
{
OFString *programName;
OFMutableArray *arguments;
id delegate;
}
#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain) OFString *programName;
@property (readonly, retain) OFArray *arguments;
@property (retain) id delegate;
#endif
/**
* \return The only OFApplication instance in the application
*/
+ sharedApplication;
/**
* \return The name of the program (argv[0])
*/
+ (OFString*)programName;
/**
* \return The arguments passed to the application
*/
+ (OFArray*)arguments;
/**
* Terminates the application.
*/
+ (void)terminate;
/**
* Terminates the application with the specified status.
|
>
>
>
>
>
>
>
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
/**
* \brief Represents the application as an object.
*/
@interface OFApplication: OFObject
{
OFString *programName;
OFMutableArray *arguments;
OFMutableDictionary *environment;
id delegate;
}
#ifdef OF_HAVE_PROPERTIES
@property (readonly, retain) OFString *programName;
@property (readonly, retain) OFArray *arguments;
@property (readonly, retain) OFDictionary *environment;
@property (retain) id delegate;
#endif
/**
* \return The only OFApplication instance in the application
*/
+ sharedApplication;
/**
* \return The name of the program (argv[0])
*/
+ (OFString*)programName;
/**
* \return The arguments passed to the application
*/
+ (OFArray*)arguments;
/**
* \return The environment of the application
*/
+ (OFDictionary*)environment;
/**
* Terminates the application.
*/
+ (void)terminate;
/**
* Terminates the application with the specified status.
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
- (OFString*)programName;
/**
* \return The arguments passed to the application
*/
- (OFArray*)arguments;
/**
* \return The delegate of the application
*/
- (id)delegate;
/**
* Sets the delegate of the application.
|
>
>
>
>
>
|
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
- (OFString*)programName;
/**
* \return The arguments passed to the application
*/
- (OFArray*)arguments;
/**
* \return The environment of the application
*/
- (OFDictionary*)environment;
/**
* \return The delegate of the application
*/
- (id)delegate;
/**
* Sets the delegate of the application.
|