ObjFW  Check-in [9ec315d070]

Overview
Comment:Don't copy properties of OFApplication.

There is no need to reference count them, they will always be retained
by the application for the lifetime of the application.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9ec315d07000a36f86556a0d9306baf5add9d7f777be2cd299bb4041f7cdadd1
User & Date: js on 2011-11-30 23:55:40
Other Links: manifest | tags
Context
2011-12-01
02:16
Implement OFProcess for Win32. check-in: e8b7d0dd0d user: js tags: trunk
2011-11-30
23:55
Don't copy properties of OFApplication. check-in: 9ec315d070 user: js tags: trunk
2011-11-23
02:17
of_asprintf: Work around more Win32 brokenness. check-in: ccb0a96ebc user: js tags: trunk
Changes

Modified src/OFApplication.h from [a8719ab12b] to [26fb77f30b].

62
63
64
65
66
67
68
69
70
71



72
73
74
75
76
77
78
62
63
64
65
66
67
68



69
70
71
72
73
74
75
76
77
78







-
-
-
+
+
+







	OFMutableDictionary *environment;
	id <OFApplicationDelegate> delegate;
	int *argc;
	char ***argv;
}

#ifdef OF_HAVE_PROPERTIES
@property (readonly, copy) OFString *programName;
@property (readonly, copy) OFArray *arguments;
@property (readonly, copy) OFDictionary *environment;
@property (readonly, assign) OFString *programName;
@property (readonly, assign) OFArray *arguments;
@property (readonly, assign) OFDictionary *environment;
@property (assign) id <OFApplicationDelegate> delegate;
#endif

/**
 * \brief Returns the only OFApplication instance in the application.
 *
 * \return The only OFApplication instance in the application

Modified src/OFApplication.m from [449f37093f] to [64dece92ce].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
25
26
27
28
29
30
31


32
33
34
35
36
37
38







-
-







#import "OFString.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

#import "macros.h"

#if defined(__MACH__) && !defined(OF_IOS)
# include <crt_externs.h>
#elif !defined(OF_IOS)
extern char **environ;
#endif

static OFApplication *app = nil;
213
214
215
216
217
218
219
220

221
222
223
224
225

226
227
228
229
230

231
232
233
234
235
236
237
211
212
213
214
215
216
217

218
219
220
221
222

223
224
225
226
227

228
229
230
231
232
233
234
235







-
+




-
+




-
+







{
	*argc_ = argc;
	*argv_ = argv;
}

- (OFString*)programName
{
	OF_GETTER(programName, YES)
	return programName;
}

- (OFArray*)arguments
{
	OF_GETTER(arguments, YES)
	return arguments;
}

- (OFDictionary*)environment
{
	OF_GETTER(environment, YES)
	return environment;
}

- (id <OFApplicationDelegate>)delegate
{
	return delegate;
}